This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Problems starting sshd as a service on cygwin 1.7.1
- From: Myron Flickner <flickner at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 21 Jan 2010 20:15:11 -0800 (PST)
- Subject: Problems starting sshd as a service on cygwin 1.7.1
On one of my upgraded 1.7.1 system sshd quit running as a service and would not restart. I tried a few things
but never could make it work so I decided to reinstall.
I uninstalled cygwin per the FAQ and a posting on removing sshd
http://www.cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all
http://chinese-watercolor.com/LRP/printsrv/remove-cygwin.html
I reinstalled cygwin choosing defaults options. Then I added openssh to this install.
Ran ssh-host-config answered all the questions yes and set CYGWIN to "tty ntsec".
After this "cygrunsrv -S sshd" fails. most of the time - although I've seen it work a few times.
An example session is below.
Any suggestions on a work around or how to trace this ?
[flick@flick-t42]/var/log<524>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
[flick@flick-t42]/var/log<525>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
[flick@flick-t42]/var/log<526>cygrunsrv -V -Q sshd
Service : sshd
Display name : CYGWIN sshd
Current State : Stopped
Command : /usr/sbin/sshd -D
stdin path : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN="tty ntsec"
Process Type : Own Process
Startup : Automatic
Dependencies : tcpip
Account : LocalSystem
[flick@flick-t42]/var/log<527>cygrunsrv -S sshd
[flick@flick-t42]/var/log<528>cygrunsrv -E sshd
[flick@flick-t42]/var/log<529>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
[flick@flick-t42]/var/log<530>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
[flick@flick-t42]/var/log<531>
[flick@flick-t42]/var/log<531>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
[flick@flick-t42]/var/log<532>cygrunsrv -V -Q sshd
Service : sshd
Display name : CYGWIN sshd
Current State : Stopped
Command : /usr/sbin/sshd -D
stdin path : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Environment : CYGWIN="tty ntsec"
Process Type : Own Process
Startup : Automatic
Dependencies : tcpip
Account : LocalSystem
[flick@flick-t42]/var/log<533>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
imaging away / flick
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple