我试图将我的博客(Octopress)推送到 github 并收到此错误:
MacBook-Air:octopress bdeely$ git push origin source
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
我生成了一个 SSH 密钥,保存了它,甚至在 SSH 密钥设置中将它与我的 GitHub 帐户相关联,但我继续检查状态并得到相同的错误:
MacBook-Air:.ssh bdeely$ ssh -T git@github.com
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)
除此之外,我查看了github 的帮助页面,执行了以下操作并收到此错误消息:
MacBook-Air:~ bdeely$ ssh-add -l
The agent has no identities.
Run Code Online (Sandbox Code Playgroud)
有谁知道出了什么问题以及我如何解决这个问题?