Cygwin: ssh-add can't talk to ssh-agent

From: Pablo Halpern (phalpern_at_halpernwightsoftware.com)
Date: 08/12/05

  • Next message: Peter Gutmann: "Re: Difference between "PasswordAuthentication yes" and "AllowedAuthentication password" ?"
    Date: Fri, 12 Aug 2005 06:22:26 GMT
    
    

    I've been using ssh with ssh-agent succesfully on Cygwin for years. A
    few days ago, however, I updated my cygwin distribution and now when I
    try ssh-agent, I get the following:

    $ eval `ssh-agent`
    Agent pid 3708
    $ ssh-add
    Enter passphrase for /home/Pablo/.ssh/id_dsa: <passphrase entered here>
    Error reading response length from authentication socket.
    Error writing to authentication socket.
    Could not add identity: /home/Pablo/.ssh/id_dsa

    To check permissions I did the following:

    $ ls -la $SSH_AUTH_SOCK
    srw------- 1 Pablo None 53 Aug 12 02:14 /tmp/ssh-se7wpgoSwh/agent.2312
    $ ls -la ~/.ssh
    total 22
    drwx------+ 2 Pablo None 0 Aug 9 00:07 .
    drwxr-xr-x+ 35 Pablo None 0 Aug 9 00:31 ..
    -rw------- 1 Pablo None 598 Jun 26 18:55 authorized_keys
    -rw------- 1 Pablo None 736 Jun 16 2003 id_dsa
    -rw-r--r-- 1 Pablo None 605 Jun 26 18:31 id_dsa.pub
    -rw-r--r-- 1 Pablo None 3046 Aug 8 23:51 known_hosts
    $ ssh -v
    OpenSSH_4.1p1, OpenSSL 0.9.8 05 Jul 2005

    This all looks normal to me. I tried disabling my virus and spyware
    checkers, re-installing the previous version of ssh, re-installing the
    previous verion of cygwin, un-installing and re-installing all of
    cygwin, running ssh-agent as other users, and plenty of reboots. I'm
    stumped. Does anybody know what might be going on?

    TAI,

    ---------------------------------------------------------------
    Pablo Halpern phalpern@halpernwightsoftware.com
    http://www.halpernwightsoftware.com


  • Next message: Peter Gutmann: "Re: Difference between "PasswordAuthentication yes" and "AllowedAuthentication password" ?"

    Relevant Pages

    • Re: what is ssh-sgent?
      ... As I said ssh-agent gets installed when you install ssh. ... What I was saying is that this doesn't add any security for me as my sessions are left on all day so once I had started up and entered my ssh key for the session it's adding no security at all, anyone with access to my machine could use my ssh connections. ... If someone has physical access to my machine then they can see my keys but if they have physical access to my machine and I'm running ssh-agent although they don't get access to my keys they can use the ssh connections anyway so it makes no significant difference. ...
      (Ubuntu)
    • Re: possible problem with scp/ssh/telnet
      ... (sshd on the Linux side), which actually listens on port 22. ... SSH should be running as a service under Windows; ... As for configuration, from within a Cygwin shell, go to /etc and look at ...
      (Fedora)
    • SSH Server for Windows using Cygwin
      ... Today I was looking for a SSH Server that I can run under Windows. ... First you want to download the cygwin setup program @: ... Just run the setup program and follow the installation instructions ... After installation you need to start cygwin using the brand new icon ...
      (comp.security.ssh)
    • Re: ssh-keygen between SuSE and FreeBSD
      ... You need to start an ssh-agent on the machine you're connecting from and ... see if it has ssh session support. ... If the ssh-agent and ssh-add utilities load the keys into memory, ... rebooting will take the keys out of memory and you would need to ...
      (freebsd-stable)
    • Re: ssh-keygen between SuSE and FreeBSD
      ... You need to start an ssh-agent on the machine you're connecting from and ... see if it has ssh session support. ... If the ssh-agent and ssh-add utilities load the keys into memory, ... rebooting will take the keys out of memory and you would need to ...
      (freebsd-stable)