【发布时间】:2018-02-06 13:36:01
【问题描述】:
我一直遇到这个奇怪的问题。我最近刚刚将我的 mac 升级到了 sierra,并为 github 生成了一个新的 ssh 密钥。
问题是,我将我的 ssh 密钥添加到 gihub,它可以工作大约 15 分钟,然后我得到一个错误
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
所以我最终做了
pbcopy < ~/.ssh/id_rsa.pub
我删除了 github 中的 ssh 密钥并再次添加。我必须每 15 分钟坚持一次。有谁知道问题出在哪里?
【问题讨论】:
标签: git macos github ssh ssh-keys