不灭的焱

革命尚未成功,同志仍须努力

作者:php-note.com  发布于:2019-05-10 14:31  分类:Linux基础  编辑

执行 添加私钥命令时

ssh-add ~/.ssh/id_rsa_wenjianbao

报错:

Could not open a connection to your authentication agent.

 

解决方案:

# 启动 ssh-agent
eval `ssh-agent -s`

# 添加私钥到 agent
ssh-add ~/.ssh/id_rsa_wenjianbao

 

 

参考:

could-not-open-a-connection-to-your-authentication-agent

解决git bash中执行“ssh-add pathName”时出现“Could not open a connection to your authentication agent.”

解决cygwin下的“Could not open a connection to your authentication agent.”