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

Windows下配置Git报错:Could not open a connection to your authentication agent.

2017-06-10 23:18 921 查看
============================================================

Windows下安装配置Git时,常有错误解决方法详解:

◆在添加秘钥命令时报错:Could not open a connection to your authentication agent.

ssh-add ~/.ssh/id_rsa

Could not open a connection to your authentication agent.

◆解决方法:

1、先执行eval `ssh-agent -s`或者
eval `ssh-agent` 都可以

2、再次执行
ssh-add ~/.ssh/id_rsa

3、接着添加公钥即可cat ~/.ssh/id_rsa.pub

具体过程如下图所示:











============================================================
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐