I installed sshd to run as a service by doing: > ssh-host-config -y > cygrunsrv -S sshd
This worked initially and I was able to ssh to my machine. However several days later I noticed it was no longer working. Looking in the windows services panel, the service was stopped so I tried starting it, but it stopped immediately. So I tried running cygrunsrv -S sshd from a shell and that exited with cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. So I did a search in the archives here and found out how to get a system-owned prompt ('at <time+1> /interactive c:\windows\system32\cmd.exe'), from the system-owned prompt I ran c:\cygwin\Cygwin.bat and then ran /usr/sbin/sshd.exe -D -d -d -d. That started up just fine and I was able to ssh into my machine. I did note that after logging out of the ssh session, sshd exited also. I'm not sure if that's normal for the case of running sshd -D or not. In any case, I'm now baffled as to why it won't run as a service. It seems that the permissions must be right because using the system-owned prompt I can run it just fine. Also, looking in the windows services panel, for sshd the Log On is set as "Local System account". The only 2 things I can think of that changed between when the initial cygrunsrv -S sshd occurred and when it started failing is: 1) I rebooted the machine (maybe after being run during bootup something happened?) 2) I installed apache2triad This is on an XP laptop running SP2. Cygwin is very recent since I just installed it last week. Info from cygcheck is attached. Any ideas on either what is wrong or how to find out more info about what might be wrong? Thanks, Dave
cygcheck.out
Description: Binary data
-- 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/