can't start sshd as a windows 2000 service (cygwin)

From: jim (jgraf_at_pacbell.net)
Date: 11/23/05


Date: 23 Nov 2005 10:01:56 -0800

hello,

I just can't get the sshd to start as a windows service. It starts just
fine by hand - /usr/sbin/sshd.exe - and I can ssh in no problem, but I
can't get sshd running as a service:
$ cygrunsrv.exe --list --verbose
Service : sshd
Current State : Stopped
Command : /usr/sbin/sshd.exe
stdin path : /dev/null
stdout path : /var/log/sshd.log
stderr path : /var/log/sshd.log
Process Type : Own Process
Startup : Automatic
Account : LocalSystem
$ cygrunsrv.exe --start sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
1062:
The service has not been started.

I googled up this suggestion:

cygrunsrv --install sshd --path /usr/sbin/sshd.exe -e "CYGWIN=tty
ntsec" -d "Cygwin SSHD" -1 /var/log/sshd.log -2 /var/log/sshd.log -t
manual -y Tcpip -a '-e -D'

But I get the same error 1062. It really isn't all that important, just
an annoying detail. I've successfully used rsync/ssh to backup portions
of my linux box to a large (and Cheap!) WD USB2 drive, so I would say I
have a 99% success rate. Still, that darn service...

Some possibly useful data: I am a member of the administrator group,
the windows OS is updated, brand new cygwin install.

thanks for any suggestions,
jim



Relevant Pages

  • Re: Remote login with NAT fails
    ... but I did try this and sshd would not even start. ... Could not load host key: ... Disabling protocol version 1. ... I am running sshd as a windows service using ...
    (comp.security.ssh)
  • Re: ssh with tcp_wrappers!! contd/-
    ... Thanks a lot for such a huge response, of course typing mistake, i was using DenyHost not DenyGhost; as suggested by david and others i did this, ... Login, as root, to my Linux system containing the sshd server. ... i am not willing to compile openssh package is there any way out via rpm installation. ... Then try to ssh to localhost. ...
    (RedHat)
  • Re: use ipchains to block all ports > 60,000
    ... else going on here except sshd which allows me to log in and monitor the ... Telnet not running but here's the ouput of ssh -V and sshd -V ... OK, ran that from an external box and it showed open ports 22, 80, plus ... My ISP looked for evidence of massive scans emanating from my ip address ...
    (comp.os.linux.security)
  • remote administration of upgrades
    ... server that I administer runs FreeBSD 4.8, ... have ssh access to ... don't want to fubar sshd and then not be able to ... kill only the ...
    (freebsd-questions)
  • Re: Is OpenSSH 3.5p1 secure?
    ... Do not allow root access over ssh. ... Do allow access over ssh for one and only one user. ... Here are a couple specific recommendations for you that you may wish ... Make sure your Protocol 2 RSA or DSA sshd keys are at the very ...
    (comp.security.ssh)