Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Fri, 5 Nov 2004 13:53:41 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Walter Garcia-Fontes cc: cygwin AT cygwin DOT com Subject: Re: Cannot start sshd service In-Reply-To: <20041105180701.GB3784@upf.edu> Message-ID: References: <20041105123015 DOT GB3024 AT upf DOT edu> <418B87BC DOT 2000807 AT familiehaase DOT de> <20041105180701 DOT GB3784 AT upf DOT edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Content-Disposition: INLINE X-Scanned-By: MIMEDefang 2.39 On Fri, 5 Nov 2004, Walter Garcia-Fontes wrote ([snip]ped): > Here I answer to all the suggestions of Gerrit and Igor: > > Igor Pechtchanski [041105 10:23]: > > 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: > > >[snip] > > > 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). > > Nothing in /var/log/sshd.log (the file exists but has 0 size). > In the event viewer I see errors coming from the Service Control > Manager, EventID:7041 with the following description: > > The CYGWIN sshd service terminated unexpectedly. It has done this 4 > time(s). The following corrective action will be taken in 0 > milliseconds: No action. Wrong log ("system"?). Look in the "application" log... > > > [snip] > > > 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 > > I did this, and giving the following options to cygrunsrv I got the > following in the log: > > cygrunsrv -I test -p /cygdrive/c/users/wgarac/test/test -e "CYGWIN=binmode ntsec tty" > > Got: [snipped] > Fri Nov 5 16:12:05 RST 2004 > PATH=/cygdrive/c/texmf/miktex/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/WINNT/system32/nls:/cygdrive/c/WINNT/system32/nls/ENGLISH:/cygdrive/c/Program Files/Common Files/Adaptec Shared/System:/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/:/bin > SYSTEMROOT=C:\WINNT > > Nothing strange, as far as I can tell... Yep. The main question was whether /bin is in the PATH and whether SYSTEMROOT was set. This is answered. > * Gerrit P. Haase [041105 15:02]: . Thanks. > [snip] 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/