Unable to log in to SSH Server using Cygwin

Jeffrey Cheng jcheng12@gmail.com
Mon Feb 4 09:13:00 GMT 2013


I've been trying to set up an SSH server in Cygwin and I haven't been
able to successfully log in to the localhost. Following some online
tutorials, I have set up a public/private key pair, ran
ssh-host-config and then when attempting to log in, I get the below

$ ssh -v -i ~/.ssh/id_dsa [user]@[hostname]
OpenSSH_6.1p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to [host] [host ip] port 22.
debug1: Connection established.
debug1: identity file /home/[user]/.ssh/id_dsa type 2
debug1: identity file /home/[user]/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.1
debug1: match: OpenSSH_6.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA f4:15:10:b9:7e:8e:61:a4:e8:b9:e4:4b:9b:98:cb:82
debug1: Host '[host]' is known and matches the ECDSA host key.
debug1: Found key in /home/[user]/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
debug1: Next authentication method: publickey
debug1: Offering DSA public key: /home/[user]/.ssh/id_dsa
Connection closed by [host ip]

It seems that as soon as it tries to authenticate the private key, I
get the "Connection closed" message. Has anyone experienced this and
is aware of a solution?

I'm running Cygwin 1.7.17 on Windows Server 2003. My Windows user
account has administrative privileges.

I've tried running ssh into this box from my local Windows PC and am
actually able to use password authentication. However, I have a
requirement that I muse use public key authentication. This at least
tells me there shouldn't be any firewall issue.

Any help in this matter would be appreciated.



Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list