I'm trying to use ssh-agent in Windows git bash. I do
eval `ssh-agent`
it prints process PID, in task manager I can see that it indeed is running.
Then I do ssh-add -l
. It thinks for some time and says: Error connecting to agent: Connection timed out.
I checked that environment variable SSH_AUTH_SOCK
in current terminal is set to something, I checked that only one ssh-agent is running.
My firewall shows me that ssh-add connects to localhost (port number is different every time) but no bytes are sent or received. Surely I tried turning firewall off with no success.
My googling skills are failing me, all errors I could find were related to incorrect running of ssh-agent (i.e. without eval). I'm out of ides.
The question is: how do I make it work?
UPD: I booted in safe mode with networking and ssh-add works. So it must be something in my system setup.