This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cannot start sshd service


On Fri, 5 Nov 2004, Walter Garcia-Fontes wrote ([snip]ped):

> Here I answer to all the suggestions of Gerrit and Igor:
>
> Igor Pechtchanski <pechtcha at cs dot nyu dot edu> [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 <gerrit@XXXXXXXXXXXX.XX> [041105 15:02]:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> [snip]

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]