Can not log in to recently enabled/configured sshd service

Alfred von Campe
Wed Feb 6 14:59:00 GMT 2008

I have a pretty vanilla Cygwin installation on a Windows 2003 Server  
(SP1) system.  Yesterday, I tried to enable the sshd service by  
running the ssh-host-config script.  Everything appeared to work fine  
and I let the script create the two recommended user accounts.  I was  
also able to start the sshd service successfully.  However, I can not  
log in to the system.  With the minimal /etc/passwd file, when I try  
to log in via ssh using a user that is not in the /etc/passwd file,  
it will not take my password at all (that's to be expected).  I then  
added my account (as well as all the other accounts in our Windows  
domain) to the /etc/passwd file by running the following command:

   mkpasswd -l -d >> /etc/passwd

Now when I try to log in I get immediately disconnected as shown in  
this debug output output:

# ssh -v av16209@gandalf
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /home/av16209/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to gandalf [] port 22.
debug1: Connection established.
debug1: identity file /home/av16209/.ssh/identity type 0
debug1: identity file /home/av16209/.ssh/id_rsa type 1
debug1: identity file /home/av16209/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7
debug1: match: OpenSSH_4.7 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 'gandalf' is known and matches the RSA host key.
debug1: Found key in /home/av16209/.ssh/known_hosts:101
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_ACCEPT received
debug1: Authentications that can continue:  
debug1: Next authentication method: publickey
debug1: Offering public key: /home/av16209/.ssh/id_rsa
Connection closed by

The home directory defined in the Cygwin /etc/passwd file is "// 
nasbox/av16209" which is the same home directory used on the Linux  
system that I initiated the ssh connection from (only there it's  
mounted as "/home/av16209").  I have got passwordless ssh access  
working from all my Linux systems, so that part is set up correctly.

Any ideas as to why this is failing on the Cygwin side?


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list