Re: SSHD permission woes

From: Peter Buckley <peter.buckley_at_**********.***>
Date: Tue Dec 11 2001 - 15:48:49 EST

I don't remember if it was you, but someone who was having this problem
on the cygwin list was recommended to that they bind the SSHD service to
  tcpip. You can find out how to do this by searching the cygwin mailing
list archives with google.

HTH,
Peter

Derek M. Tournear wrote:

> OK Everyone, thanks for the help. Now here is the situation. The
> service runs fine started with Cygwin Cygwin SSHD as on the website?s
> instructions. I also had it running the same with FireDaemon and srvany
> in the reskit. Everything works well as it should the service is
> started by the system, with the following nuance. When I reboot the
> computer the service says it is started but I get the error:
> ssh_exchange_identification: read: Connection reset by peer
>
> However, if I then stop the service and restart it everything works
> fine. Even when I log off and log back on everything seems to work
> well. Only when I shut down and restart.
>
>
>
> But here are the permissions in NT,
>
> 1) removed everything except system full control from the
> ssh_host_*key files
>
> 2) added system full control to sshd.exe and sshd.log
>
> 3) attached at the bottom are the Unix permissions on the
> directories: /etc /usr/sbin /ssh/.ssh /var/log
>
>
>
>
>
> These permissions seem correct to me, anyone having problems with
> permissions can check against these. And if anyone knows what they
> really should be and there is something wrong with these then let us know.
>
>
>
> Thanks,
>
>
>
>
>
>
>
> Derek M. Tournear
>
> SLAC Research Associate (650) 926-3971 fax: (650) 926-4335
>
> GOD BLESS AMERICA!
>
> http://www.slac.stanford.edu/~tournear
>
>
>
>
> ------------------------------------------------------------------------
>
> total 705k
> -rwx------ 1 tournear None 45k May 15 2001 IN.FTPD.EXE.in2*
> -rwx------ 1 tournear None 6.0k Jan 19 2001 IN.REXECD.EXE.in2*
> -rwx------ 1 tournear None 13k Jan 19 2001 IN.RLOGIND.EXE.in2*
> -rwx------ 1 tournear None 14k May 23 2001 IN.RSHD.EXE.in2*
> -rwx------ 1 tournear None 11k Jan 19 2001 IN.TALKD.EXE.in2*
> -rwx------ 1 tournear None 55k Jan 19 2001 IN.TELNETD.EXE.in2*
> -rwx------ 1 tournear None 11k Jan 19 2001 IN.TFTPD.EXE.in2*
> -rwx------ 1 tournear None 7.5k Jan 19 2001 IN.UUCPD.EXE.in2*
> -rwx--x--x 1 tournear None 28k Jul 10 04:44 cron.exe*
> -rwx--x--x 1 tournear None 45k Nov 5 04:27 in.ftpd.exe*
> -rwx--x--x 1 tournear None 6.5k Nov 5 04:27 in.rexecd.exe*
> -rwx--x--x 1 tournear None 13k Nov 5 04:27 in.rlogind.exe*
> -rwx--x--x 1 tournear None 14k Nov 5 04:27 in.rshd.exe*
> lrwxrwxrwx 1 tournear None 125 Dec 7 10:16 in.sshd.exe -> /usr/sbin/sshd.exe*
> -rwx--x--x 1 tournear None 11k Nov 5 04:27 in.talkd.exe*
> -rwx--x--x 1 tournear None 55k Nov 5 04:27 in.telnetd.exe*
> -rwx--x--x 1 tournear None 11k Nov 5 04:27 in.tftpd.exe*
> -rwx--x--x 1 tournear None 7.5k Nov 5 04:27 in.uucpd.exe*
> -rwx--x--x 1 tournear None 21k Nov 5 04:27 inetd.exe*
> -rwx------ 1 tournear None 9.4k Apr 20 2000 makewhatis*
> -rw-rw-rw- 1 tournear Administ 0 Dec 11 11:50 sbin_perm.txt
> -rwx--x--x 1 tournear None 22k Nov 20 05:15 sftp-server.exe*
> -rwx--x--x 1 tournear None 269k Nov 20 05:15 sshd.exe*
> -rwx--x--x 1 tournear None 17k Apr 12 2001 ssmtp.exe*
>
>
> ------------------------------------------------------------------------
>
> total 4.1M
> -rwx------ 1 tournear None 4.0M Dec 11 11:40 lastlog*
> -rw-rw-rw- 1 tournear Administ 0 Dec 11 2001 log_perm.txt
> -rwxr--r-- 1 system SYSTEM 26k Dec 7 09:15 sshd.log*
>
>
> ------------------------------------------------------------------------
>
> total 13k
> -rw------- 1 tournear None 222 Nov 15 11:39 WS_FTP.LOG
> -rw------- 1 tournear None 335 Aug 10 15:29 authorized_keys
> -rw------- 1 tournear None 834 Dec 6 09:14 authorized_keys2
> -rw------- 1 tournear None 668 Dec 6 09:14 id_dsa
> -rw------- 1 tournear None 607 Dec 6 09:14 id_dsa.pub
> -rw------- 1 tournear None 883 Dec 6 09:14 id_rsa
> -rw------- 1 tournear None 227 Dec 6 09:14 id_rsa.pub
> -rw------- 1 tournear None 532 Dec 6 15:11 identity
> -rw------- 1 tournear None 337 Dec 6 15:11 identity.pub
> -rw------- 1 tournear None 1.8k Dec 11 09:25 known_hosts
> -rw------- 1 tournear None 234 Dec 6 09:15 known_hosts2
> -rw------- 1 tournear None 512 Dec 6 15:12 random_seed
>

-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]
--
--
List Information: http://tech.erdelynet.com/maillist-ssh-l.asp
List Archives:    http://erdelynet.com/archive/ssh-l/
Received on Tue Dec 11 15:53:31 2001

This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:31 EDT