Daniel,
Here is the debug output from libssh2:
http://pastebin.com/f4f31eeb8
As you can see, after I get the failure event, I still get fingerprints
and those fingerprints are correct. But I can't actually see the
hostkey at all.
OLIVER
On 1/6/2010 3:00 AM, [email protected] wrote:
Message: 3
Date: Tue, 05 Jan 2010 08:24:47 -0800
From: Oliver Nelson<[email protected]>
To:[email protected]
Subject: RE: Unable to exchange encryption keys
Message-ID:<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 1/1/2010 9:53 PM,[email protected] wrote:
> Message: 1
> Date: Fri, 1 Jan 2010 16:22:46 +0100 (CET)
> From: Daniel Stenberg<[email protected]>
> To: libssh2 development<[email protected]>
> Subject: RE: Unable to exchange encryption keys
> Message-ID:<[email protected]>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Thu, 31 Dec 2009, Oliver Nelson wrote:
>
>
>>> >> I don't have a very deep understanding of how SSH works. I was
under
>>> >> the impression that receiving the "Unable to exchange encryption
keys"
>>> >> error I am getting was related to the reason that
libssh2_session_hostkey
>>> >> isn't returning the hostkey.
>>>
> As the negotiation failed and no SSH connection was made, there's not a valid
> session setup. Or what am I not understanding?
>
> If you look at the thread history you'll see that I am getting a successful
connection even though I get this error and can't see the hostkey. Also, the hash
of the hostkey is correct. I can login without a problem. I'm using the
connection in a port forwarding mode, and that works just fine. But when I
started the testing I wasn't doing any key verification. I went to add that and
came across this issue.
OLIVER
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel