X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.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.9020204@u.washington.edu>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  quoted-printable
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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@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/

