我的环境:win7
今天对Git 添加ssh key时,提示
Could not open a connection to your authentication agent。
原因:未启动ssh agent
解决方案:
1.输入如下命令,启动agent:eval $(ssh-agent -s)
或者:
eval `ssh-agent -s` (是~键上的那个`)
出现类似的 Agent pid 7076 的字符,则说明启动成功。
启动后,再使用ssh-add ~/.ssh/id_rsa
其它操作系统可以参考stack over上的问题:https://stackoverflow.com/questions/17846529/could-not-open-a-connection-to-your-authentication-agent
最后发现,只要按照Git帮助文档,一步步操作就不会出错了。原来我是漏了一个步骤,才导致出错的
。
Git 帮助文档:https://help.github.com/articles/connecting-to-github-with-ssh/
本文介绍了在Windows 7环境下配置Git SSH Key时遇到的连接认证代理失败的问题及解决方法。通过启动ssh-agent并添加私钥到代理,解决了Could not open a connection to your authentication agent的错误。
1287

被折叠的 条评论
为什么被折叠?



