delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/04/10:24:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Thu, 4 Nov 2004 10:23:37 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Walter Garcia-Fontes <walter DOT garcia AT upf DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: Cannot start sshd service
In-Reply-To: <20041104133244.GA3080@upf.edu>
Message-ID: <Pine.GSO.4.61.0411041009510.25828@slinky.cs.nyu.edu>
References: <20041104133244 DOT GA3080 AT upf DOT edu>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Thu, 4 Nov 2004, Walter Garcia-Fontes wrote:

> I'd appreciate any hint to solve the following problem:
>
> I get the "Could not start sshd service on Local Computer. Error 1067:
> The process terminated unexpectedly." I've seen some reports on this
> in the archives, but none of the solutions suggested worked for me. Here
> is the status of my installation:
>
> 1) I followed carefully all the steps in the specific doc for openssh
> for Cygwin (/usr/share/doc/Cygwin/openssh.README).

Does this mean you ran ssh-host-config to install the sshd service?

> 2) I'm running it under the SYSTEM account. I'm able to launch the sshd
> service manually from a sysbash, and it accepts remote connections
> without a problem, but I can't start from the service manager of with
> "net start sshd".

What does the Windows Event Log show?  Is there anything in
/var/log/sshd.log (even though as installed by ssh-host-config, sshd
doesn't log there by default).

> 3) I double checked permissions in the relevant files, and set them up
> the way the doc says in 1), but it doesn't work.

Are all the needed DLLs executable (run "cygcheck /usr/sbin/sshd.exe" to
list the DLLs)?  Are all of them in the PATH for the service?

> [snip]
> 5) I mounted everything as system and binmode.

Since you ran from system bash, could you also verify that there are no
*user* mounts for the SYSTEM account?

> 6) Here is the output of cygcheck:
> [snip]

In the future, please *attach* the output of cygcheck, to minimize false
positive hits in archive searches.  Besides, your cut&paste seems to have
cut off the first column on some lines...

One more suggestion: add a script like

#!/bin/sh
date >> /var/log/test.log
env >> /var/log/test.log
echo "---------------------------------" >> /var/log/test.log

as a service called "test" with cygrunsrv (using the same options as your
sshd service), and try to start it.  This should give you the exact
environment for the service (in /var/log/test.log), and might unearth some
clues.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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/

- Raw text -


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