Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 20 Sep 2004 17:33:35 +1000 (EST) From: luke DOT kendall AT cisra DOT canon DOT com DOT au Subject: ssh login to PC stopped working To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <20040920073335.C132184CCE@pessard.research.canon.com.au> This afternoon, while trying to diagnose why I couldn't slogin to a new machine with Cygwin installed, I slogin-ed to my own PC (logged in successfully) and looked at some file permissions. Then logged out. A few minutes later I tried to slogin again, and this time it failed. (I am confident no one else touched the machine in the meantime, since I was nearby and could see it the whole time.) Since then, I sorted out the problems on the new machine (/var/empty wasn't owned by system, and group not writeable, and similarly for /etc/ssh*: none of which is detected by ssh-host-config), and so was able to start sshd and slogin to the new machine. But I can't work out what's wrong on my own PC (doyle) now! It appears to accept the password, then simply close the connection. And this problem developed minutes after it had all been working. Is it failing because I don't have write permission on /var/log/sshd.log? I have Administrator rights. Any suggestions about how I could diagnose what's going wrong? Some possibly useful info is: $ ls -ld /var/empty /var/log/sshd.log drwxr-xr-x+ 2 SYSTEM root 0 Sep 3 16:55 /var/empty -rw-r--r-- 1 SYSTEM SYSTEM 1164 Sep 10 12:09 /var/log/sshd.log $ tail -33 /var/log/sshd.log 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. 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. 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. 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. $ ls -l /etc/ssh* -rwxr-xr-x 1 SYSTEM Domain U 1159 Sep 10 10:45 /etc/ssh_config -rwxr-xr-x 1 SYSTEM Domain U 1159 Sep 3 16:55 /etc/ssh_config.saved -rw------- 1 SYSTEM Domain U 668 Sep 3 16:55 /etc/ssh_host_dsa_key -rw-r--r-- 1 SYSTEM Domain U 600 Sep 3 16:55 /etc/ssh_host_dsa_key.pub -rw------- 1 SYSTEM Domain U 525 Sep 3 16:55 /etc/ssh_host_key -rw-r--r-- 1 SYSTEM Domain U 329 Sep 3 16:55 /etc/ssh_host_key.pub -rw------- 1 SYSTEM Domain U 887 Sep 3 16:55 /etc/ssh_host_rsa_key -rw-r--r-- 1 SYSTEM Domain U 220 Sep 3 16:55 /etc/ssh_host_rsa_key.pub -rw-r--r-- 1 SYSTEM Domain U 2910 Sep 10 10:45 /etc/sshd_config -rw-r--r-- 1 SYSTEM Domain U 2910 Sep 8 15:54 /etc/sshd_config.saved $ cygrunsrv -Q sshd Service sshd exists Type : Own Process Current State : Running Controls Accepted : Accept Stop $ slogin -v doyle OpenSSH_3.9p1, OpenSSL 0.9.7d 17 Mar 2004 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to doyle [10.2.3.39] port 22. debug1: Connection established. debug1: identity file /home/luke/.ssh/identity type 0 debug1: identity file /home/luke/.ssh/id_rsa type -1 debug1: identity file /home/luke/.ssh/id_dsa type 2 debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1 debug1: match: OpenSSH_3.9p1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.9p1 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host doyle is known and matches the RSA host key. debug1: Found key in /home/luke/.ssh/known_hosts:19 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /home/luke/.ssh/id_rsa debug1: Offering public key: /home/luke/.ssh/id_dsa debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: password luke AT doyles password: debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 Connection to doyle closed. debug1: Transferred: stdin 0, stdout 0, stderr 29 bytes in 0.1 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 381.6 debug1: Exit status 255 luke -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/