X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.3 required=5.0 	tests=AWL,BAYES_20,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: openSSH Windows server 2003, key mode
Date:  Tue, 22 Dec 2009 08:35:45 -0600
Lines: 43
Message-ID: <hgqlg3$9uj$1@ger.gmane.org>
References:  <2a993d40912220402x6e4af736u43581ddd3c2d0921@mail.gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  quoted-printable
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: <2a993d40912220402x6e4af736u43581ddd3c2d0921@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

St=E9phanie Cettou wrote:

> I have a problem, I will connection with key mode in my openSSH
> server. In can connect with my password.

So this way it works.

> I have cop[ied] m[y] public key [to] home/myUser/.ssh/authorized_keys.

Which public key?  You may have several around...

> When I connect with winSCP, I have an error:
>  The server expected closed connection.
>  Authentification error.
>=20
> And if connect with cygwin:
> ssh myUser@10.4.15.5
> Connection closed by 10.4.15.5
>=20
> I generate the keys in my client pc (xp) with PuTTYgen.

This is the key you refer above?  This is probably the cause of the
problem, are all the different programs you are using as client using
the same pair of keys (public and private)?

Let's try a simple test:

In your client computer, in a terminal under your Cygwin user home
directory run the following

scp -o PubkeyAuthentication=3Dno .ssh/id_dsa.pub myUser@10.4.15.5:tempKey
ssh -o PubkeyAuthentication=3Dno myUser@10.4.15.5
cat tempKey >> .ssh/authorized_keys
exit
ssh myUser@10.4.15.5

Did that work as expected?

I don't know PuTTYgen or what's the deal with .ppk keys; know even less
about winSCP so no comments there.
--=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

