delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/14/09:45:30

X-Spam-Check-By: sourceware.org
Date: Mon, 14 May 2007 15:44:54 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ssh-add fails in Windows Vista
Message-ID: <20070514134454.GJ12259@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <2344 DOT 73253 DOT qm AT web31909 DOT mail DOT mud DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <2344.73253.qm@web31909.mail.mud.yahoo.com>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Apr 28 11:47, Mihai Anitescu wrote:
> Hi all,
> The problem is similar to the one outlined in the thread of
> http://sourceware.org/ml/cygwin/2007-03/msg00671.html
> but I could not find the answer. 
> 
> I have attached the strace and cygcheck -srv outputs. 
> SSH_AUTH_SOCK and SSH_AGENT_PID are set by " eval  `ssh-agent -s`" and read correctly by ssh-add as far as I can tell from strace at points 16249 and 16332. 
> 
> Nonetheless, I still get the "Cannot connect to the agent" error.It seems to me the problem starts once the socket file is processed, at point 1189861 in strace. The text version of the file starts with "!<socket >56572 s 332F1 ......"

Works fine for me with a restricted admin account, so that's not a
generic problem.  The error you're referring to...

> [...]
>   178 1189861 [main] ssh-add 83428 __set_winsock_errno: connect:775 - winsock error 10036 -> errno 119

is not actually a problem but expected.  It's a simple EINPROGRESS which
is normal for a connect on non-blocking sockets.  Cygwin always switches
to non-blocking under the hood to allow to interrupt the process when in
a system call.

The actual error happens here:

> [...]
>   189 2191463 [main] ssh-add 83428 cygwin_getsockopt: WinSock SO_ERROR = 10061
>    82 2191545 [main] ssh-add 83428 cygwin_getsockopt: 0 = getsockopt (3, 65535, 0x1007, 0x22C894, 0x22C898)
>    66 2191611 [main] ssh-add 83428 __set_errno: int cygwin_connect(int, const sockaddr*, socklen_t):806 val 111

The call to getsockopt is made by the connect procedure itself.  It's
unclear to me why you get a "connection refused" error (Winsock 10061 ==
WSAECONNREFUSED) at this point.  Is it possible that your firewall
software is blocking ssh-add?  Keep in mind that AF_LOCAL sockets are
not available on Windows natively and so are implemented as local
AF_INET sockets.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019