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

使用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.

 

就可以了





posted @ 2016-08-10 17:50  dy9776  阅读(422)  评论(0编辑  收藏  举报