Re: cannot start sshd on cygwin- win xp
- From: ddunham@xxxxxxxx (Darren Dunham)
- Date: Thu, 01 Nov 2007 16:22:43 GMT
jameshanley39@xxxxxxxxxxx <jameshanley39@xxxxxxxxxxx> wrote:
I rebooted the machine and it did not start.
On further tests based on the methods you have mentioned..
I have since reinstalled cygwin, this time with OpenSSL
I found that the strace command, started sshd and sort of occupied the
window, did not return me to a shell to enter more commands in that
window. Not a problem, I can open another cygwin window.
Let's start slow. Make sure the server works properly before trying to
turn it into a service.
When run with no options (no '-d' right?) then it should return control
in your shell.
Do you see information in your event viewer? When I run sshd I get a
nice message about sshd: PID XXX: Server listening on 0.0.0.0 port 22.
Anything different for you?
How about when you try to run it as a service?
Current user@minitough ~
$ net start sshd
The sshd service is starting.
The sshd service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
And what does thoat help message display?
I'm not sure where I found this, but I think that the service runner
expects that the program it's running will stick around (in other words,
doesn't create a separate daemon). So I run my ssh with -D when I'm
invoking as a service, and without it when invoking from a shell.
$ /usr/sbin/sshd
[pause..]
$
Works fine. Or....(after killing the one above)
$ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service was started successfully.
$ cygrunsrv -Q sshd
Service : sshd
Display name : CYGWIN sshd
Current state : Running
Controls Accepted : Stop
Command : /usr/sbin/sshd -D
--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.
- Follow-Ups:
- Re: cannot start sshd on cygwin- win xp
- From: jameshanley39@xxxxxxxxxxx
- Re: cannot start sshd on cygwin- win xp
- References:
- Re: cannot start sshd on cygwin- win xp
- From: jameshanley39@xxxxxxxxxxx
- Re: cannot start sshd on cygwin- win xp
- Prev by Date: libssh on windows
- Next by Date: Re: Custom sshd
- Previous by thread: Re: cannot start sshd on cygwin- win xp
- Next by thread: Re: cannot start sshd on cygwin- win xp
- Index(es):
Relevant Pages
|
|