On Tue, 9 Apr 2002, Andrews Harold G Maj USAFA/DFCS wrote:
> Mr. Epstein,
>
> Thanks for the assist.
>
> > The real key is why does the service fail to start?
> >
> Still no clue here.
>
> > What command did you use to install the service?
> >
> I've tried two approaches. The first is to use the
> ssh-host-config script which installs sshd with the command:
>
> cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D -e "CYGWIN=ntsec tty"
>
> I have also used a suggestion Mike made a few weeks ago:
>
>
> cygrunsrv -I sshd -p /usr/sbin/sshd -a '-D' -d 'CYGWIN sshd' -e
> 'CYGWIN=ntsec tty' -y tcpip
>
> In neither case does cygrunsrv -S sshd start properly.
Hi,
I don't know if you're willing to try a third way?
I'm using WinXPHome and also found sshd was either not
starting at all or several daemons were starting at once.
Just by chance, I installed the Cygwin port of inetd,
part of inetutils [v. 1.3.2], which seems to install
nicely as a service - it doesn't use cygrunsrv, it can
install itself as a service.
I run sshd out of inetd and now sshd works fine.
If you follow the inetd route for getting sshd working
properly, here's the sshd line for /etc/inetd.conf :
[dirk@winnie dirk]$ cat /etc/inetd.conf | grep ssh
ssh stream tcp nowait root /usr/sbin/in.sshd in.sshd -i
The -i is important..
Hope that helps,
Mongo
P.S. Hopefully, if and when tcpd is sorted out for Cygwin (it
has been once but noone could find the time to maintain it), we
might be able to use hosts.allow and hosts.deny to control
exactly who can connect to our network services...
-- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/Received on Tue Apr 9 20:20:56 2002
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:34 EDT