0

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.

  • @KamilMaciorowski I guess you are right; I did the edit. – Amomum Jan 24 '18 at 8:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.