Re: cannot start sshd on cygwin- win xp



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



Relevant Pages

  • Re: native port of sshd for windows
    ... > Does a native port of SSHD (the server, ... You can run the cygwin sshd from a DOS/command shell line rather than ... I had it running on Windows ME by having a BAT file launch it ...
    (comp.security.ssh)
  • Re: Q:Two Cygwin sshds per one Windows machine?
    ... Both should have sshd server. ... >>has anybody managed to set up two Cygwin sshd processes for single ... I am thinking of setting ssh connections ... The SSH daemons will have to listen on different ports, ...
    (comp.security.ssh)
  • Re: cannot start sshd on cygwin- win xp
    ... I have since reinstalled cygwin, ... I found that the strace command, started sshd and sort of occupied ... cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error ...
    (comp.security.ssh)
  • Re: Cgywin sshd: immediate disconnect
    ... > I'm running Cygwin sshd on Windows XP, ... > With sshd installed as an NT service, even when I ssh to localhost, I get ... It seems to be a problem about ssh and cygwin: You have to use password to ...
    (comp.security.ssh)
  • Re: ftp through a ssh-tunnel refuses my ftp-shell
    ... sshd uses the target account's shell to start all programs on the user's ... behalf, including subsystems, by calling $SHELL -c. ... the configuration you quote will work with an sftp client, ... This can never work in any way at all, since the FTP protocol is not ...
    (comp.security.ssh)