cygrunsrv not starting

3 posts / 0 new
Last post
itefix
Offline
Last seen: 2 weeks 15 hours ago
Joined: 01.05.2008 - 21:33
cygrunsrv not starting

I had sshd under cygwin installed and running as a service fine. Now when I try to start the service I get the following error
$ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.

or

$ cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.

Can someone please help me with this issue. It seems to be a permissions problem.

itefix
Offline
Last seen: 2 weeks 15 hours ago
Joined: 01.05.2008 - 21:33
Re: cygrunsrv not starting

It seems that you have a full-blown cygwin environment. I'm sure that you can get more qualified help if you post your question to cygwin users mailing list at cygwin website

itefix
Offline
Last seen: 2 weeks 15 hours ago
Joined: 01.05.2008 - 21:33
Re: cygrunsrv not starting

I had the same error. Check the sshd log: "/var/log/sshd.log". In my case, it said that it couldn't load the files that contained the host keys:
/etc/ssh_host_key
/etc/ssh_host_dsa_key
/etc/ssh_host_rsa_key

Don't worry if you don't know what the host keys are, or what they're for; the simple fix for me was to add read permissions to those files:

chmod +r /etc/ssh_host*

After that, sshd worked fine.

Release announcements