delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/02/04/04:13:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
X-Received: by 10.112.10.135 with SMTP id i7mr7931248lbb.51.1359969198708; Mon, 04 Feb 2013 01:13:18 -0800 (PST)
Date: Mon, 4 Feb 2013 01:13:18 -0800
Message-ID: <CAJTy7oA07cZ2FkO_bYg9ObupFMn=2+cXx2zZr3SbD-3sz5=D=g@mail.gmail.com>
Subject: Unable to log in to SSH Server using Cygwin
From: Jeffrey Cheng <jcheng12 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello,

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
output:

$ 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_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
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.

Thanks,

Jeff

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019