X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <476E5B79.32FAFCE@dessent.net> Date: Sun, 23 Dec 2007 04:58:33 -0800 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Struggling to setup sshd with Windows Vista References: <96c450350712230222s3549d224m75974cd082bf71a3 AT mail DOT gmail DOT com> <96c450350712230448q14dc0ac3s34e85de08d9b6e9f AT mail DOT gmail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Kevin Hilton wrote: > Just another thing that I have noticed: > > $ /usr/sbin/sshd -d -d -d -D That's a very bad idea. The daemon requires privileges that normal users (even administrators) don't have, so trying to run it like that as a normal user is just a recipe for breaking things. And even if you got it to work, you'd have to change all the permissions which were set up by the script for the daemon to be run as a service. > Who should be the owner of /var/empty. Right now I have: > drwxr-xr-x+ 2 SYSTEM SYSTEM 0 Dec 22 22:40 empty That's probably correct. You've got some indeterminate state of brokenness here. Delete the sshd user, delete the service, delete /var/empty, delete the sshd config files, recreate known good passwd and group files, and then just run "ssh-host-config -y" and let it create everything correctly. That is all you should ever need to do. Messing with things manually just leads to trouble unless you understand what's going on. Brian -- 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/