Subject: RE: Unable to exchange encryption keys

RE: Unable to exchange encryption keys

From: Oliver Nelson <>
Date: Tue, 05 Jan 2010 08:24:47 -0800

On 1/1/2010 9:53 PM, wrote:
> Message: 1
> Date: Fri, 1 Jan 2010 16:22:46 +0100 (CET)
> From: Daniel Stenberg<>
> To: libssh2 development<>
> Subject: RE: Unable to exchange encryption keys
> Message-ID:<>
> 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.

Received on 2010-01-05