Cygwin sshd starts but not listening

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I've got a box that starts it's Cygwin service, or so it seems...
$ cygrunsrv -Q sshd
Service sshd exists
Type                : Own Process
Current State       : Running
Controls Accepted   : Accept Stop

...but isn't actually listening/accepting connections...
$ netstat -a | grep ssh

$ ssh localhost
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [] port 22.
debug1: connect to address port 22: Connection refused
ssh: connect to host localhost port 22: Connection refused

I've reinstalled Cygwin a few times, and the sshd service, but no joy.

It's obviously stuck on something (I'm guessing file permissions) but
I'm not sure what?

The "cygrunsrv -E sshd" command won't stop the service either?! To get
the service to stop, I have to do this, for example...
$ tasklist /svc | grep sshd
cygrunsrv.exe               3944 sshd
sshd.exe                    3908 N/A
$ taskkill /F /PID 3944
SUCCESS: The process with PID 3944 has been terminated.
$ taskkill /F /PID 3908
SUCCESS: The process with PID 3908 has been terminated.

Does this ring any bells with anyone? I'll post more details if
anyone's interested.


Site Timeline