Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: Marcos Lorenzo de Santiago cc: tony DOT arnold AT man DOT ac DOT uk, , Subject: Re: Quick password question... In-Reply-To: Message-ID: 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/