首页 > 其他 > 详细

解决git客户端MINGW32下的“Could not open a connection to your authentication agent.”

时间:2016-08-10 18:59:13      阅读:245      评论:0      收藏:0      [点我收藏+]

使用git, 下载客户端后想进行和github 进行ssh 互通

出现以下情况:

hadoop@deng-PC MINGW32 ~/.ssh
$ ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.

 

解决办法:

【解决方法】需要ssh-agent启动bash,或者说把bash挂到ssh-agent下面。

【具体方法】

islue@localhost $ ssh-agent bash --login -i
islue@localhost $ ssh-add ~/.ssh/id_rsa      

然后出现:

hadoop@deng-PC MINGW32 ~/.ssh
$ ssh-add ~/.ssh/id_rsa
Enter passphrase for /c/Users/hadoop/.ssh/id_rsa:
Identity added: /c/Users/hadoop/.ssh/id_rsa (/c/Users/hadoop/.ssh/id_rsa)

 

而后:

hadoop@deng-PC MINGW32 ~/.ssh
$ ssh -T git@github.com
Hi HolleDeng! You‘ve successfully authenticated, but GitHub does not provide shell access.

 

就可以了





解决git客户端MINGW32下的“Could not open a connection to your authentication agent.”

原文:http://www.cnblogs.com/nucdy/p/5757763.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!