不灭的焱

加密类型:SHA/AES/RSA下载Go
复合类型:切片(slice)、映射(map)、指针(pointer)、函数(function)、通道(channel)、接口(interface)、数组(array)、结构体(struct) Go类型+零值nil
引用类型:切片(slice)、映射(map)、指针(pointer)、函数(function)、通道(channel) Go引用

作者:AlbertWen  添加时间:2013-03-02 13:57:18  修改时间:2025-09-09 07:43:09  分类:01.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.”