Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sources.redhat.com/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 Date: Thu, 5 Sep 2002 11:14:17 +0200 (MEST) From: Bjoern Kahl AG Resy <kahl AT informatik DOT uni-kl DOT de> To: Marcos Lorenzo de Santiago <marcos AT it DOT uc3m DOT es> cc: tony DOT arnold AT man DOT ac DOT uk, <ssh-l AT erdelynet DOT com>, <cygwin AT cygwin DOT com> Subject: Re: Quick password question... In-Reply-To: <Pine.LNX.3.96.1020905105821.32636A-100000@varpa.it.uc3m.es> Message-ID: <Pine.GSO.4.44.0209051104110.1785-100000@domino.informatik.uni-kl.de> Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hallo! On Thu, 5 Sep 2002, Marcos Lorenzo de Santiago wrote: > On Thu, 5 Sep 2002 tony DOT arnold AT man DOT ac DOT uk wrote: > > > On Wed, Sep 04, 2002 at 10:04:52PM -0400, Adam K Kirchhoff wrote: > > > > > Here's the problem I'm having: sshd refuses to do public key > > > authentication when run as a Windows service. It will only work with > > > password authentication. > > > If I run sshd from the command line, it works just as one would expect and > > > allows for public key authentication. > > > > I have a similar problem. sshd on my XP machine at work will not do public > > key authentication when running as a service. Run it from a command prompt > > window under the SYSTEM account and it does work! In theorie, sshd should allow public key authentication in two situations: When run under SYSTEM-Account as service (because only SYSTEM may change usercontext without a password) and when run as that user, which tries to login with public key authentication (because there is no usercontext switch neccessarie). If it works form commandline as SYSTEM (btw.: how do you get a command prompt running as SYSTEM? I thought that is impossible ...) but not as a service under the SYSTEM account, then check your PATH and CYGWIN variable. Is PATH and CYGWIN set to somthing usefull when running as a service? Has the SYSTEM-account access to the ssh(d) files? What about permissions of authorized_keys and know_hosts? Just some random ideas. Hope this helps you. Bjoern -- +---------------------------------------------------------------------+ | Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) | | Informatics Faculty +++ Building 48 +++ University of Kaiserslautern| | phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de | +---------------------------------------------------------------------+ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/