Thanks for the help. I now have all but three of them running. Of the
remaining ones, two have some hardware problems (bad NICs) and the last is
from this perspective a head scratcher which somebody out there might have a
solution.
This is a fresh installation of Cygwin, with everything installed. Three
things stand out.
1) There is no /var/log/sshd.log file. Is this a problem at this point?
2) cygrunsrv -S sshd fails to start the service
3) /usr/sbin/sshd.exe complains that it couldn't load any host keys.
After running Mike's fixperms.sh script, here's what I did:
======> Start Log <======
Harold.Andrews@DFCS2D705 /etc
$ ls -l
total 257
-rw-r--r-- 1 Administ Administ 76980 Dec 10 02:16 Muttrc
drwxr-xr-x 2 Administ Administ 0 Apr 9 08:36 cron.d
-rw-r--r-- 1 Administ Administ 1356 Feb 19 11:00 csh.cshrc
-rw-r--r-- 1 Administ Administ 401 Dec 21 03:40 csh.login
-rw-r--r-- 1 Administ Administ 14 Apr 9 08:57 ftpusers
-rw-r--r-- 1 Administ Administ 49 Apr 9 08:57 ftpwelcome
-rw-r--r-- 1 Administ Administ 20021 Apr 9 08:58 group
-rw-r--r-- 1 Administ Administ 2030 Apr 9 09:18 inetd.conf
-rw-r--r-- 1 Administ Administ 1898 Dec 10 02:16 mime.types
-rw-r--r-- 1 Administ Administ 88039 Mar 7 07:50 moduli
-rw-r--r-- 1 Administ Administ 60 Apr 9 08:57 motd
-rw-r--r-- 1 Administ Administ 1400 Apr 9 08:57 passwd
drwxr-xr-x 2 Administ Administ 4096 Apr 9 08:57 postinstall
-rw-r--r-- 1 Administ Administ 386 Apr 9 08:57 profile
drwxr-xr-x 2 Administ Administ 0 Apr 9 08:45 profile.d
drwxr-xr-x 2 Administ Administ 45056 Apr 9 08:53 setup
-rw-r--r-- 1 Administ Administ 68 Apr 9 08:57 shells
drwxr-xr-x 2 Administ Administ 0 Apr 9 08:44 ssmtp
-rw-r--r-- 1 Administ Administ 12306 Apr 3 07:11 termcap
Harold.Andrews@DFCS2D705 /etc
$ printenv | grep CYGWIN
CYGWIN=ntsec tty
Harold.Andrews@DFCS2D705 /etc
$ ssh-host-config -y
Generating /etc/ssh_host_key
Generating /etc/ssh_host_rsa_key
Generating /etc/ssh_host_dsa_key
Generating /etc/ssh_config file
Generating /etc/sshd_config file
Do you want to install sshd as service?
Which value should the environment variable CYGWIN have when
sshd starts? It's recommended to set at least "ntsec" to be
able to change user context without password.
Default is "binmode ntsec tty". CYGWIN=ntsec tty
The service has been installed under LocalSystem account.
Host configuration finished. Have fun!
Harold.Andrews@DFCS2D705 /etc
$ chown -R 544:544 /var
Harold.Andrews@DFCS2D705 /etc
$ chown 18:18 /var/log/sshd.log
chown: getting attributes of `/var/log/sshd.log': No such file or directory
Harold.Andrews@DFCS2D705 /etc
$ chown 544:544 /etc/ssh*
Harold.Andrews@DFCS2D705 /etc
$ chown 18:18 /etc/ssh_host*_key
Harold.Andrews@DFCS2D705 /etc
$ cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.
Harold.Andrews@DFCS2D705 /etc
$ cygrunsrv -R sshd
Harold.Andrews@DFCS2D705 /etc
$ /usr/sbin/sshd.exe -d -d -d
debug1: sshd version OpenSSH_3.1p1
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
Harold.Andrews@DFCS2D705 /etc
$ ls -l
total 266
-rw-r--r-- 1 Administ Administ 76980 Dec 10 02:16 Muttrc
drwxr-xr-x 2 Administ Administ 0 Apr 9 08:36 cron.d
-rw-r--r-- 1 Administ Administ 1356 Feb 19 11:00 csh.cshrc
-rw-r--r-- 1 Administ Administ 401 Dec 21 03:40 csh.login
-rw-r--r-- 1 Administ Administ 14 Apr 9 08:57 ftpusers
-rw-r--r-- 1 Administ Administ 49 Apr 9 08:57 ftpwelcome
-rw-r--r-- 1 Administ Administ 20021 Apr 9 08:58 group
-rw-r--r-- 1 Administ Administ 2030 Apr 9 09:18 inetd.conf
-rw-r--r-- 1 Administ Administ 1898 Dec 10 02:16 mime.types
-rw-r--r-- 1 Administ Administ 88039 Mar 7 07:50 moduli
-rw-r--r-- 1 Administ Administ 60 Apr 9 08:57 motd
-rw-r--r-- 1 Administ Administ 1400 Apr 9 08:57 passwd
drwxr-xr-x 2 Administ Administ 4096 Apr 9 08:57 postinstall
-rw-r--r-- 1 Administ Administ 386 Apr 9 08:57 profile
drwxr-xr-x 2 Administ Administ 0 Apr 9 08:45 profile.d
drwxr-xr-x 2 Administ Administ 45056 Apr 9 08:53 setup
-rw-r--r-- 1 Administ Administ 68 Apr 9 08:57 shells
-rw-rw-rw- 1 Administ Administ 955 Apr 9 10:23 ssh_config
-rw------- 1 SYSTEM SYSTEM 668 Apr 9 10:23 ssh_host_dsa_key
-rw-r--r-- 1 Administ Administ 614 Apr 9 10:23 ssh_host_dsa_key.pub
-rw------- 1 SYSTEM SYSTEM 539 Apr 9 10:23 ssh_host_key
-rw-r--r-- 1 Administ Administ 343 Apr 9 10:23 ssh_host_key.pub
-rw------- 1 SYSTEM SYSTEM 883 Apr 9 10:23 ssh_host_rsa_key
-rw-r--r-- 1 Administ Administ 234 Apr 9 10:23 ssh_host_rsa_key.pub
-rw-rw-rw- 1 Administ Administ 1562 Apr 9 10:23 sshd_config
drwxr-xr-x 2 Administ Administ 0 Apr 9 08:44 ssmtp
-rw-r--r-- 1 Administ Administ 12306 Apr 3 07:11 termcap
Harold.Andrews@DFCS2D705 /etc
$
=======> End Log <=======
Any insight would be very much appreciated. Thanks
-Andy
Major Harold G. Andrews II, Ph.D.
Assistant Professor
Department of Computer Science
United States Air Force Academy
DSN 333-7553
Comm 719-333-7553
-----Original Message-----
From: Chris Ellsworth [mailto:cke@highlandshighspeed.net]
Sent: Monday, April 08, 2002 3:06 PM
To: ssh-l@erdelynet.com
Subject: Re: [ssh-l] Trouble getting sshd started
I saw the statement
"setgid 11607: Invalid argument"
have you verifed that the users in the passwd have group # that is located
within the group file?
----- Original Message -----
From: "Andrews Harold G Maj USAFA/DFCS" <Harold.Andrews@usafa.af.mil>
To: <ssh-l@erdelynet.com>
Sent: Monday, April 08, 2002 10:56 AM
Subject: [ssh-l] Trouble getting sshd started
> All,
>
> I have 24 Win2K and 1 WinXP machines on which I've been trying to get
> sshd running. Two of the Win2K machines and the one WinXP machines
> seem to be working okay. It seems I've screwed up the rest of them.
> A cursory
glimpse
> of recent posts failed to enlighten me as to how I might correct the
> problem.
>
> Anyway here are some details:
>
<SNIP>
-- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/Received on Tue Apr 9 13:43:16 2002
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:34 EDT