ssh-add Could not open a connection to your authentication agent

我们两清 提交于 2019-12-22 08:11:40

问题


I'm having a little issue with my ssh-agent. Indeed I can't make it work and I don't understand why.

This is the console's output :

I'm sure that ssh agent is running. For your information I'm on Windows 7 and I tried to run the gitbash with administrator permissions, but that did not changed anything. Also everything worked fine until yesterday, and I did not changed anything.

Do you guys have any ideas why ?


回答1:


Simply upgrade to the latest git for windows (with a more recent bash, while msysgit is obsolete)

Unzip PortableGit-2.6.2-64-bit.7z.exe anywhere you want, and add C:\path\to\PortableGit-2.6.2-64-bit to your path.

Then call C:\path\to\PortableGit-2.6.2-64-bit\git-bash.exe, and you are good to go.

Check the value of $HOME (echo $HOME) and check it is a folder you have the right to write, where there is ~/.ssh with gitlab and gitlab.pub.



来源:https://stackoverflow.com/questions/29963643/ssh-add-could-not-open-a-connection-to-your-authentication-agent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!