I installed msysgit: Git -1.7.8-preview20111206.exe from http://code.google.com/p/msysgit/downloads/list (Edit: I also installed msysGit -fullinstall-1.7.8-preview20111206.exe, which it is conveniently installed in another directory, and I see the same problems with this instance).
And I have a problem with ssh-agent, where ssh-add always reports: "Failed to open a connection with your authentication agent."
Unfortunately, ssh-add does not give me additional information about the error it encountered. It seems that this is the time when he is trying to connect to the socket, but does not really recognize that this is a problem, and ssh-agent acts as if it is working fine. Thinking about this combination makes me suspect a permission problem, but I have no idea where I will look for this problem (and I don't see anything that I recognize as significant in the Windows event log).
This error message is confusing: I have reason to believe that I can get this error message if my environmental variables were not set up properly, but I have reason to believe that my environment settings are correct. I have reason to believe that I can get this error message if my environment variables refer to an ssh-agent instance that does not work, but I only have one ssh-agent instance and it matches what I see in environment variables, and this is repeatable. I started (and eventually closed) scores ssh-agent instance, using techniques such as ssh-agent > ~/.ssh/environment; . ~/.ssh/environmentand eval `ssh-agent`and ssh-agent bashetc .... and I can not get msys ssh-add to connect to the SSH-agent msys.
bash-3.1$ ps | grep ssh-agent
10304 1 10304 10304 ? 500 09:01:24 /bin/ssh-agent
bash-3.1$ bash -c 'set | grep SSH_A'
BASH_EXECUTION_STRING='set | grep SSH_A'
SSH_AGENT_PID=10304
SSH_AUTH_SOCK=/tmp/ssh-oAFwa11048/agent.11048
bash-3.1$ time ssh-add -L
Could not open a connection to your authentication agent.
real 0m10.730s
user 0m0.000s
sys 0m0.015s
bash-3.1$ wc /tmp/ssh-oAFwa11048/agent.11048
0 3 52 /tmp/ssh-oAFwa11048/agent.11048
bash-3.1$ cat /tmp/ssh-oAFwa11048/agent.11048; echo
bash-3.1$
, - , ssh-add, , script ...
, 10 , ssh-add, , " ...".
Windows 7. cygwin, , msys. , ssh-agent. ssh- ssh- msys msysgit bash ( - cygwin ). ssh cygwin ssh-keygen, , msys ssh . ssh-agent .
cygwin ssh-agent, cygwin msys ( ), msys - cygwin.
, , msys ssh-add ? (: , ssh-add ?)