【发布时间】:2011-10-27 06:33:39
【问题描述】:
可能重复:
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
现在,我该怎么办,谢谢任何帮助。
【问题讨论】:
标签: github