作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Possible Duplicate:
github: newbie problems -> Permission denied (publickey). fatal: The remote end hung up unexpectedly
请参阅下面的命令,
$ git clone git://github.com/{user_name}/{project_name}.git
Initialized empty Git repository in /home/dengx/rorBlog_demo/rorblog/.git/
更改文件并提交,因此我需要推回 git 存储库。
$ git push git@github.com/{user_name}/{project_name}.git master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
所以,我将存储库的 ssh-key 复制到我的文件 ~/.ssh/id_rsa.pub,然后再次推送,
$ git push git@github.com/{user_name}/{project_name}.git master
Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
现在我该怎么办,谢谢您的帮助。
最佳答案
Google 搜索“权限被拒绝(公钥)。致命:远程端意外挂起”,第一个结果是一个确切的 SO 欺骗:
GitHub: Permission denied (publickey). fatal: The remote end hung up unexpectedly其中链接在已接受的答案中(来自原始海报,不少于):http://help.github.com/linux-set-up-git/
关于github - 权限被拒绝(公钥)。致命: The remote end hung up unexpectedly while pushing back to git repository,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7065257/
我是一名优秀的程序员,十分优秀!