git pull:权限被拒绝
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3249212/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
git pull: permission denied
提问by ohana
I created a repository in my desktop and push to github, then clone that repository to my laptop to make development, later committed the changes and push to github. now back to my desktop, i tried 'git pull' to get all the changed i made, it showed the error message: Permission denied (publickey) fatal: The remote end hung up unexpectedly.
我在桌面上创建了一个存储库并推送到 github,然后将该存储库克隆到我的笔记本电脑进行开发,然后提交更改并推送到 github。现在回到我的桌面,我尝试“git pull”来获取我所做的所有更改,它显示错误消息:权限被拒绝(公钥)致命:远程端意外挂断。
how could this happen? i push the repository to github originally from my desktop it know the remote, now it complained permission denied?
这怎么会发生?我最初从我的桌面将存储库推送到 github 它知道远程,现在它抱怨权限被拒绝?
回答by brycemcd
Your best bet is to go to your github accountand make sure both your desktop AND your laptop's public keys are there and available. This page may also help you out: http://help.github.com/troubleshooting-ssh/
最好的办法是访问您的 github 帐户并确保您的台式机和笔记本电脑的公钥都在那里并且可用。此页面也可以帮助您:http: //help.github.com/troubleshooting-ssh/