delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/22/11:17:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <2a993d40912220714u28e194cepc57812437ae33053@mail.gmail.com>
References: <2a993d40912220402x6e4af736u43581ddd3c2d0921 AT mail DOT gmail DOT com> <hgqlg3$9uj$1 AT ger DOT gmane DOT org> <2a993d40912220714u28e194cepc57812437ae33053 AT mail DOT gmail DOT com>
Date: Tue, 22 Dec 2009 17:17:01 +0100
Message-ID: <2a993d40912220817x1d68178sdc31d481f7b15eb7@mail.gmail.com>
Subject: Re: openSSH Windows server 2003, key mode
From: =?ISO-8859-1?Q?St=E9phanie_Cettou?= <s DOT cettou AT gmail DOT com>
To: cygwin AT cygwin DOT 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

If I do:

scettou AT CHWS0018 /cygdrive/c/Documents and Settings/scettou/Desktop/key
$ ssh -v 10.4.15.5
OpenSSH_5.1p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to 10.4.15.5 [10.4.15.5] port 22.
debug1: Connection established.
debug1: identity file /home/scettou/.ssh/identity type -1
debug1: identity file /home/scettou/.ssh/id_rsa type 1
debug1: identity file /home/scettou/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1
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: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
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-inte=
racti
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


While Connection closed????????

help me...

St=E9phanie


2009/12/22 St=E9phanie Cettou <s DOT cettou AT gmail DOT com>:
> Thank you for you answer,
>
> I use a rsa key, so I adapt the command:
>
>
> scettou AT CHWS0018 /cygdrive/c/Documents and Settings/scettou/Desktop/key
> $ scp -o PubkeyAuthentication=3Dno id_rsa.pub scettou AT 10 DOT 4 DOT 15 DOT 5:tempKey
> scettou AT 10 DOT 4 DOT 15 DOT 5's password:
> id_rsa.pub =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0100% =A0225 =A0 =A0 0.2KB/s =A0 00:00
>
> scettou AT CHWS0018 /cygdrive/c/Documents and Settings/scettou/Desktop/key
> $ ssh -o PubkeyAuthentication=3Dno scettou AT 10 DOT 4 DOT 15 DOT 5
> scettou AT 10 DOT 4 DOT 15 DOT 5's password:
> Last login: Tue Dec 22 13:06:30 2009 from scbsprod.servcenterxa.ch
>
> scettou AT SCBSPROD ~
> $ cat tempKey >> .ssh/authorized_keys
>
> scettou AT SCBSPROD ~
> $ exit
> logout
> Connection to 10.4.15.5 closed.
>
> scettou AT CHWS0018 /cygdrive/c/Documents and Settings/scettou/Desktop/key
> $ ssh scettou AT 10 DOT 4 DOT 15 DOT 5
> Connection closed by 10.4.15.5
>
> So....what I can do?
>
> St=E9phanie
>
>
> 2009/12/22 Ren=E9 Berber <r DOT berber AT computer DOT org>:
>> 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? =A0You may have several around...
>>
>>> When I connect with winSCP, I have an error:
>>> =A0The server expected closed connection.
>>> =A0Authentification error.
>>>
>>> And if connect with cygwin:
>>> ssh myUser AT 10 DOT 4 DOT 15 DOT 5
>>> Connection closed by 10.4.15.5
>>>
>>> I generate the keys in my client pc (xp) with PuTTYgen.
>>
>> This is the key you refer above? =A0This 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.
>> --
>> Ren=E9 Berber
>>
>>
>> --
>> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
>> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
>> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
>> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>>
>>
>

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