X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 24 Dec 2007 00:25:07 -0800 From: Jerry DeLisle Subject: Re: Struggling to setup sshd with Windows Vista In-reply-to: <476F6105.46D5419F@dessent.net> To: cygwin AT cygwin DOT com Message-id: <476F6CE3.4020900@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <96c450350712230222s3549d224m75974cd082bf71a3 AT mail DOT gmail DOT com> <96c450350712230448q14dc0ac3s34e85de08d9b6e9f AT mail DOT gmail DOT com> <96c450350712231207g36bcc392w38c92bf52a52802c AT mail DOT gmail DOT com> <476F6105 DOT 46D5419F AT dessent DOT net> User-Agent: Thunderbird 2.0.0.9 (X11/20071115) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Brian Dessent wrote: > Kevin Hilton wrote: > >> Let me just make sure I know what you are telling me to do, since I >> already did this and it didnt make a difference. As an administrator, >> I: >> 1. Delete the sshd user -- Ok I manually edited the /etc/passwd file >> and deleted this user > > No, I mean delete the *user*, not a line in a passwd file. Windows has > a notion of user accounts, Cygwin does not; it just mirrors the Windows > database in the passwd and group file. So deleting a user means doing > it in Windows, through the control panel, or with "net user". > > On 2k3 and greater (including Vista) ssh-host-config should have created > both a sshd (for privsep) and a sshd_server user (for running the > service), so you'd want to run "net user sshd /delete" and "net user > sshd_server /delete". You can run "net user" to see the list of Windows > user accounts. If you don't see these user accounts it means the > ssh-host-config script wasn't able to create them, which is probably the > underlying cause. > > The reason for suggesting to delete these users is that ssh-host-config > won't recreate them if they already exist, so if they exist and are > setup wrong, ssh-host-config can't help you. > I was having trouble as well, only on an XP system. This last hint worked for me. (net user sshd /delete) -- 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/