delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/24/01:31:48

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: password authentication fails in cygwin openssh windows xp pro
Date: Thu, 24 May 2007 00:30:52 -0500
Lines: 71
Message-ID: <f337ud$rmb$1@sea.gmane.org>
References: <46551144 DOT 9020204 AT u DOT washington DOT edu>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
In-Reply-To: <46551144.9020204@u.washington.edu>
OpenPGP: url=hkp://wwwkeys.pgp.net
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

Dan Miller wrote:

[snip]
> C:\Program Files\UVP
> Inc\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Pro=
gram
> Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common
> Files\GTK\2.0\bin;C:\Program Files\Zone
> Labs\ZoneAlarm\MailFrontier;C:\cygwin\bin
-------^^^^^^^^^
Warning Will Robinson, ZoneAlarm could cause problems; also the GTK stuff w=
hich
does have some common dlls with Cygwin but compiled for MingW... but from y=
our
report none of this seems to be causing the problem.

[snip]
> I created an environment variable named CYGWIN and set its value to
> ntsec tty

Not needed.

> ran ssh-host-config and answered yes to all questions including
> privilege separation
> When asked for the value of CYGWIN I again typed ntsec tty

Again, not needed (those are the defaults).

> At this point I can start the sshd service (cygrunsrv -S sshd) but if I
> try to login (ssh localhost) I get a password prompt and it fails.

How it fails?

Have you tried `ssh -vvv localhost`?

Do the /etc/passwd and /etc/group files exist? and is your user in the firs=
t one?

> So, I made a new user named sshdproc, gave it the administrators
> password, and put it in the administrators group and gave it the
> following rights:
...
> now I can start the sshd service, it runs as sshdproc, but still when I
> ssh localhost I get prompted and my password fails

You didn't solve the first problem and just went looking for more?

> so I ssh-user-config
>=20
> still no joy.....
>=20
> Can someone please give me some advice on where to go from here. I don't
> know what else to try and I don't know how to troubleshoot why my
> password is failing to authenticate.

Just to make sure, the server does ask for the password 3 times? and it rej=
ects
it (look in the Windows events, if you are not using syslog, sshd leaves a
message saying it rejected an invalid password, or invalid user).

Your user is local, not a domain user, right?

Post the result of the `ssh -vvv your-user AT localhost`, it may show the prob=
lem
in detail.
--=20
Ren=E9 Berber


--
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