Subject: Key Exchange Failure

Key Exchange Failure

From: Wesley Witt <>
Date: Sat, 11 Feb 2017 21:34:38 +0000

I'm new to libssh2 and am trying to get a basic test program working. The problem I'm seeing is when I call libssh2_session_handshake I get back LIBSSH2_ERROR_KEX_FAILURE. The host that I'm connecting to is Ubuntu 16.04. The client OS is Windows 10. I can successfully connect to the host over ssh 2 using putty. I am using the ssh2.c sample code from the libssh repo.

Is there some configuration requirement for the host or client?


Received on 2017-02-11