www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/22/15:56:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: openSSH Windows server 2003, key mode
Date: Tue, 22 Dec 2009 14:56:11 -0600
Lines: 43
Message-ID: <hgrbpd$nj6$1@ger.gmane.org>
References: <2a993d40912220402x6e4af736u43581ddd3c2d0921 AT mail DOT gmail DOT com> <hgqlg3$9uj$1 AT ger DOT gmane DOT org> <2a993d40912220714u28e194cepc57812437ae33053 AT mail DOT gmail DOT com> <2a993d40912220817x1d68178sdc31d481f7b15eb7 AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0
In-Reply-To: <2a993d40912220817x1d68178sdc31d481f7b15eb7@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

St=E9phanie Cettou wrote:
[]
> debug1: match: OpenSSH_5.1 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_5.1
[]
> debug1: Host '10.4.15.5' is known and matches the RSA host key.
> debug1: Found key in /home/scettou/.ssh/known_hosts:3
> 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-in=
teracti
> ve
> debug1: Next authentication method: publickey
> debug1: Trying private key: /home/scettou/.ssh/identity
> debug1: Offering public key: /home/scettou/.ssh/id_rsa
> Connection closed by 10.4.15.5
>=20
> Wh[y] Connection closed????????

Do you have access to the server sshd log?  It could be faster to find
out why sshd is closing the connection in there.

My guess is that your authorized_keys is corrupted or has invalid keys
or perhaps more than one key per client is nor allowed (I wasn't sure
about this last one when I wrote my first reply)... so you can move it
to one side and make a new authorized_keys with only the key you copied
following my test:

mv .ssh/authorized_keys .ssh/authorized_keys.old
cat tempKey > .ssh/authorized_keys

This time is not append but create/overwrite.

If that still doesn't work then perhaps your Cygwin home is on a DOS
style (Fat32) file system, i.e. with CR-LF line endings and sshd chokes
on that.
--=20
Ren=E9 Berber


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