权限被拒绝(publickey)。致命:远端在推回到git存储库时意外挂断 [英] Permission denied (publickey). fatal: The remote end hung up unexpectedly while pushing back to git repository

查看:200
本文介绍了权限被拒绝(publickey)。致命:远端在推回到git存储库时意外挂断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能存在重复:

github:newbie problems - >权限被拒绝(publickey)。致命:远程终端意外挂断


请参阅以下命令, / p>

  $ git clone git://github.com/ {user_name} / {project_name} .git 
初始化的空Git存放在/home/dengx/rorBlog_demo/rorblog/.git/

更改文件并提交它,所以我需要推回到Git仓库。

  $ git push git@github.com/{user_name}/{project_name} .git master 
权限被拒绝(publickey)。
致命:远程终端意外挂起

所以,我复制了ssh-key存储到我的文件〜/ .ssh / id_rsa.pub,然后再次推送,

  $ git push git @ github。 com / {user_name} / {project_name} .git master 
代理承认使用密钥签名失败。
权限被拒绝(publickey)。
致命:远程端意外挂起

现在,我应该怎么做,谢谢帮助。

解决方案

谷歌搜索Permission denied(publickey)。致命:远程端意外挂断 dupe:

GitHub:权限被拒绝(publickey)。致命的:远程终端意外挂断,它在接受的答案中链接到这里(来自原始海报,不少于): http://help.github.com/linux-set-up-git/


Possible Duplicate:
github: newbie problems -> Permission denied (publickey). fatal: The remote end hung up unexpectedly

please see the below command ,

$ git clone git://github.com/{user_name}/{project_name}.git
Initialized empty Git repository in /home/dengx/rorBlog_demo/rorblog/.git/

Changing the files and committing it, so i need to push back to git repository.

$ git push git@github.com/{user_name}/{project_name}.git master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

so, i copy the ssh-key of the repository to my file ~/.ssh/id_rsa.pub, and then push again,

$ 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

Now, what should i do , thanks any helps.

解决方案

Googled "Permission denied (publickey). fatal: The remote end hung up unexpectedly", first result an exact SO dupe:

GitHub: Permission denied (publickey). fatal: The remote end hung up unexpectedly which links here in the accepted answer (from the original poster, no less): http://help.github.com/linux-set-up-git/

这篇关于权限被拒绝(publickey)。致命:远端在推回到git存储库时意外挂断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆