Skip to content

Commit 3d2f8b8

Browse files
committed
An attempt to fix some SSH connection failures by changing the order of key exchange methods. This change still fixes the previous problem reported in ticket #1090.
1 parent 2fc8a2a commit 3d2f8b8

File tree

1 file changed

+2
-3
lines changed
  • src/third-party/libssh2/sources/src

1 file changed

+2
-3
lines changed

src/third-party/libssh2/sources/src/kex.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,11 +1708,10 @@ kex_method_diffie_helman_group_exchange_sha256 = {
17081708
};
17091709

17101710
static const LIBSSH2_KEX_METHOD *libssh2_kex_methods[] = {
1711-
//&kex_method_diffie_helman_group_exchange_sha256, // #1090: Patch for libssh2 for ssh connection issue due to Ubuntu 16.04/OSX's
1712-
// OpenSSH 6.9 version have disabled obsolete form of KEX "Diffie-Hellman group exchange" algorithm .
1713-
&kex_method_diffie_helman_group_exchange_sha1,
17141711
&kex_method_diffie_helman_group14_sha1,
17151712
&kex_method_diffie_helman_group1_sha1,
1713+
&kex_method_diffie_helman_group_exchange_sha1,
1714+
&kex_method_diffie_helman_group_exchange_sha256,
17161715
NULL
17171716
};
17181717

0 commit comments

Comments
 (0)