문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top