Could not open a connection to your authentication agent

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`

posted @ 2020-07-02 10:49  xiejake  阅读(2083)  评论(0编辑  收藏  举报