致命:无法从远程存储库读取

时间:2014-01-02 01:03:21

标签: macos git github

我的Ubuntu没有问题,但现在我已经切换到OSX我遇到了这个问题。我在网上关注了一些解决方案,但都没有帮助。

monas-mbp:nlp mona$ git push origin master
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

如果有更多细节需要帮助,请告诉我。

1 个答案:

答案 0 :(得分:1)

我找不到合适的傻瓜。我必须说睡眠不足并不能帮助我的SO搜索功能,所以将我的评论作为答案发布。

解决它的基本步骤是:

  1. 在服务器/机器上生成ssh密钥
  2. 在github上的个人资料下添加密钥
  3. 的利润!
  4. https://help.github.com/articles/generating-ssh-keys