我正在通过"Try Git"教程工作。致命:远程端意外挂断
当我到了一章 “1.11远程推”,并尝试运行:
$ git push -u orgin master
我得到这个错误:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
任何想法?
我正在通过"Try Git"教程工作。致命:远程端意外挂断
当我到了一章 “1.11远程推”,并尝试运行:
$ git push -u orgin master
我得到这个错误:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
任何想法?
您可能没有将公钥添加到您的SSH密钥中。做到这一点:
$ ssh-keygen -t rsa
复制创建的公钥(id_rsa.pub
)到您的帐户的list of SSH keys,然后再试一次推动。
请参阅相关帮助页面:Generating SSH Keys以获得更深入的响应。
您可以使用以下命令获取默认帐户的密钥。
$ ssh-keygen -t rsa
更多信息:Multiple SSH Keys settings for different github account
它的工作原理。感谢帮助! – szatan 2013-02-21 10:59:10