ssh-add Could not open a connection to your authen

2019-05-10 20:20发布

问题:

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.