5

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?

7
  • Could it be a path issue? like a C:\Cygwin\bin prepended to your %PATH% and masking the original msysgit ssh-add executable? Commented Jun 28, 2012 at 6:05
  • Hi VonC. In advanced system settings, Env. Vars, PATH there is no mention of cygwin. Also, running %path% in the Run window opens my user folder which contains the .profile file with the code to start SSH agent. Commented Jun 28, 2012 at 9:53
  • can you double-check that by looking at the full PATH: type in a DOS windows set PATH. Commented Jun 28, 2012 at 10:18
  • Yup, there's no mention of cygwin there. There is the path to Git's bin folder though. Commented Jun 28, 2012 at 11:17
  • Looking at cygwin, I have openssh and libssh2_1 installed. Commented Jun 28, 2012 at 11:22

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, SHC. I removed Cygwin to make it work. Yours is a better solution.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.