delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/27/08:50:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_FROM_CONS6S,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <24680138.post@talk.nabble.com>
Date: Mon, 27 Jul 2009 05:49:58 -0700 (PDT)
From: "Michael H." <mchlhn AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.0-51: Problem using ssh public/private key authentication
In-Reply-To: <af075b00907230319v52b26371t343d1019d06a2158@mail.gmail.com>
MIME-Version: 1.0
References: <fffce1910907160320qda98e88v6205ba6797da6fb4 AT mail DOT gmail DOT com> <20090716110318 DOT GL27613 AT calimero DOT vinschen DOT de> <24622601 DOT post AT talk DOT nabble DOT com> <af075b00907230319v52b26371t343d1019d06a2158 AT mail DOT gmail DOT com>
X-IsSubscribed: yes
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



Julio Costa wrote:
>=20
> Hi Michael,
>=20
> On Thu, Jul 23, 2009 at 10:49, Michael H.<> wrote:
>>
>>
>> Corinna Vinschen-2 wrote:
>>>
>>> On Jul 16 12:20, Michael H. wrote:
>>>> Hello,
>>>>
>>>> When I am using cygwin 1.5 both the public/private key and the
>>>> keyboard authentication with ssh work without problems. On 1.7
>>>> keyboard authentication also works but public/private key
>>>> authentication produces following error on the machine which I use to
>>>> connect to the server (client is Linux - server is Windows XP SP3 /
>>>> Cygwin):
>>>>
>>>> 4 [main] -bash 3392 C:\cygwin\bin\bash.exe: *** fatal error - couldn't
>>>> dynamically determine load address for 'WSAGetLastError' (handle
>>>> 0xFFFFFFFF), Win32 error 126
>>>> Connection to xx.xx.xx.xx closed.
>=20
> I suspect of configuration / permissions problems...
> Are you setting up some kind of chroot?
> Also, is there any output on the /var/log/sshd.log file?
>=20
>>>
>>> Weird. =C2=A0Works fine for me.
>=20
> me too.
>=20
>>
>> Is it possible that there is anything wrong in the steps I have done to
>> setup the host (listed in my first post)?
>>
>=20
> At the first sight, no. But it's not clear if you are using the
> vanilla standard config files.
> If you did some change, it could be important to share with us.
>=20
> You can also try to run sshd "by-hand" to show us some verbose info:
> cygrunsrv -E sshd
> /usr/sbin/sshd -ddde
>=20
> Then you can try to connect to your PC and see if the generated output
> gives you any clue.
> NOTE: It's possible that the problem doesn't show up in this debugging
> mode. You will be running the sshd deamon as yourself, not as the
> SYSTEM account.
>=20
> ___________
> Julio Costa
>=20

Hi Julio,

The steps to reproduce have been done directly after installing Cygwin
without any modifications. The logfile /var/log/sshd.log is empty even after
the error has been printed on the Linux machine from which I connected to
the Windows / Cygwin machine.

I executed the commands

$ cygrunsrv -E sshd
$ /usr/sbin/sshd -ddde

using my account (not by the SYSTEM account) and afterwards I connected from
my Linux machine to the Windows / Cygwin machine without any problems! Like
you assumed the problem didn't show up in this mode. When executing
/usr/sbin/sshd using my account everything works fine but when executing it
as service the error occurs.

Michael
--=20
View this message in context: http://www.nabble.com/1.7.0-51%3A-Problem-usi=
ng-ssh-public-private-key-authentication-tp24513829p24680138.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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

- Raw text -


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