Subject: Applying patch #397

Applying patch #397

From: Dave Colter <>
Date: Thu, 9 Apr 2020 10:17:03 -0400

Rookie question here. I am primarily a Windows developer.

My Windows 10 application uses libssh2 (linked with WinCNG) to connect
to an ARM-based computer running Yocto Linux. Recently it stopped
working and will not work on Windows 10 versions 1903 and 1909. The
libssh2_session_handshake call fails, returning -43
(LIBSSH2_ERROR_SOCKET_RECV). On the ARM computer, the log file shows:
"error: kex protocol error: type 5 seq 2 [preauth]".

Long story short, the problem appears to be documented here:

There is also evidently a patch, #397. How does one go about applying a
patch? I have GIT for Windows but do not know what to put on the command


Dave Colter
Received on 2020-04-09