delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/21/23:15:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <234360.35947.qm@web111406.mail.gq1.yahoo.com>
Date: Thu, 21 Jan 2010 20:15:11 -0800 (PST)
From: Myron Flickner <flickner AT yahoo DOT com>
Subject: Problems starting sshd as a service on cygwin 1.7.1
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 AT flick-t42]/var/log<524>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick AT flick-t42]/var/log<525>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick AT 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 AT flick-t42]/var/log<527>cygrunsrv -S sshd
[flick AT flick-t42]/var/log<528>cygrunsrv -E sshd
[flick AT flick-t42]/var/log<529>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick AT flick-t42]/var/log<530>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick AT flick-t42]/var/log<531>
[flick AT flick-t42]/var/log<531>cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

[flick AT 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 AT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019