delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 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 08:35:45 -0600 |
Lines: | 43 |
Message-ID: | <hgqlg3$9uj$1@ger.gmane.org> |
References: | <2a993d40912220402x6e4af736u43581ddd3c2d0921 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: | <2a993d40912220402x6e4af736u43581ddd3c2d0921@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: > 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 AT 10 DOT 4 DOT 15 DOT 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 AT 10 DOT 4 DOT 15 DOT 5:tempKey ssh -o PubkeyAuthentication=3Dno myUser AT 10 DOT 4 DOT 15 DOT 5 cat tempKey >> .ssh/authorized_keys exit ssh myUser AT 10 DOT 4 DOT 15 DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |