Question

Installed msysGit, wrote the code to start ssh-agent in .profile, everything worked.

Installed cygwin, without Git, just ssh and cURL.

SSH Agent no longer starting when Git bash opens.

I can start a new ssh-agent process instance, I see it when running ps in the Git bash, but when trying to use ssh-add, I get this error:
Could not open a connection to your authentication agent.

With cygwin, lots of .profile and .bashrc files were created in it's install folder (C:\cygwin). Not sure if this is the issue.

How can I fix this, please?

Was it helpful?

Solution

Take a look at my answer posted here for the ssh-add issue. Hopefully, this solution should work in your scenario too.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top