首页 > 其他分享 >执行 ssh-add ~/.ssh/id_rsa 时候提示 Could not open a connection to your authentication agent

执行 ssh-add ~/.ssh/id_rsa 时候提示 Could not open a connection to your authentication agent

时间:2022-09-23 12:34:49浏览次数:52  
标签:Could rsa agent your connection ssh open id

windows下在多个git服务器之间切换,需要使用 ssh-add.exe ~/.ssh/id_rsa_xxx 重新添加git密钥才能正常clone代码,其中“id_ras_xxx”是密钥的名字,比如本人github所用的密钥名为id_rsa_github(这里需要注意不要同公钥发生混淆,公钥名为id_rsa_github.pub)。

提示“ Could not open a connection to your authentication agent”,是因为你没有启动ssh-agent,解决方法简单:

eval `ssh-agent -s`

标签:Could,rsa,agent,your,connection,ssh,open,id
From: https://www.cnblogs.com/xingboy/p/16722298.html

相关文章