delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/04/15:00:47

X-Spam-Check-By: sourceware.org
Message-ID: <43BC294B.5030802@cygwin.com>
Date: Wed, 04 Jan 2006 15:00:11 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050929 Thunderbird/1.0.7 Fedora/1.0.7-1.1.fc4 Mnenhy/0.7.3.0
MIME-Version: 1.0
To: Brett Serkez <techie AT serkez DOT net>
CC: Ordinary Olson <olson_ord AT yahoo DOT it>, cygwin AT cygwin DOT com
Subject: Re: Cygwin SSHD Password different from Windows Password - Possible?
References: <20060104184314 DOT 89313 DOT qmail AT web26102 DOT mail DOT ukl DOT yahoo DOT com> <1136402650 DOT 23812 DOT 251086493 AT webmail DOT messagingengine DOT com>
In-Reply-To: <1136402650.23812.251086493@webmail.messagingengine.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Reformatted top-post:

Brett Serkez wrote:
> 
> On Wed, 4 Jan 2006 19:43:14 +0100 (CET), "Ordinary Olson"
> <olson_ord AT yahoo DOT it> said:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>

>>I have Windows XP set up with just a single account
>>i.e. an Admin account with no admin password. I have
>>installed cygwin in this account. 
>> 
>>            Is it possible that this cygwin sshd
>>server runs with a password i.e. I want to maintain
>>the Windows XP without a password, while the cygwin
>>sshd server should have a password (for anyone trying
>>to connect to it.)
>> 
>>I tried setting the cygwin password, and after that it
>>seemed that my windows account also required the
>>password to log in. 
>>I have tried searching this topic online – but I don’t
>>think I get anything. 
>> 
>>Thank you for taking your time to respond to this. 
>>Regards,
>>O.O. 
 >
> I believe sshd will not allow login without both a password and home
> directory.  The second requirement means you must start a login shell as
> a given user to create their home directory.  This is a way of
> controlling which accounts can login remotely.
> 
> Cygwin/Windows doesn't directly support su as UNIXies do.  Normally you
> wouldn't allow direct remote login as an administrator/root, you'd force
> login as an ordinary user and then su.  In this case, you don't have
> that option, atleast not easily, perhaps use of a dedicated remote
> account with a password would be appropriate, otherwise just use the
> password on the administrator account for both.
> 
> I'm not sure if this would work with Cygwin's sshd, but I believe you
> can disable password login and use public/private keys to authenticate. 
> If their is no password, I am not sure if sshd will allow login based on
> key authentication.


Cygwin's sshd does not require a password by default.  I run it without
one all the time.  If you want to log in using password authentication
but keep your password empty, you need to change "PermitEmptyPasswords"
to "Yes" in your sshd_config file.  Regardless of this setting or what
your password is, you may use public key authentication.

On NT platforms and up, cygwin's sshd defers to Windows for password
authentication. Given that, one wouldn't be able to have a password for a
user in Cygwin's world but not in Windows or vice versa.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746


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