Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSH Agent no longer starting after installing Cygwin

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?

like image 598
Francisc Avatar asked Nov 13 '22 03:11

Francisc


1 Answers

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

like image 114
Chris Snow Avatar answered Dec 17 '22 11:12

Chris Snow