Struggling to setup sshd with Windows Vista

Jerry DeLisle jvdelisle@verizon.net
Tue Dec 25 01:01:00 GMT 2007


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/



More information about the Cygwin mailing list