您的位置:首页 > 运维架构

Could not open a connection to your authentication agent

2015-12-28 14:05 543 查看
今天在使用git来克隆远程的代码的时候出现了permission deny的提示,发现是没有添加公钥。

使用ssh-add 直接添加的时候又报出了 Could
not open a connection to your authentication agent 的提示。


解决办法:

依次执行下面的命令:

(1)exec
ssh-agent bash


(2)
eval
ssh-agent -s


(3)
ssh-add
~/.ssh/id_rsa




参考:http://stackoverflow.com/questions/24154816/git-bash-could-not-open-a-connection-to-your-authentication-agent
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: