Skip to content

Commit

Permalink
An attempt to fix some SSH connection failures by changing the order …
Browse files Browse the repository at this point in the history
…of key exchange methods. This change still fixes the previous problem reported in ticket #1090.
  • Loading branch information
simsekgokhan committed Dec 18, 2017
1 parent 2fc8a2a commit 3d2f8b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/third-party/libssh2/sources/src/kex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1708,11 +1708,10 @@ kex_method_diffie_helman_group_exchange_sha256 = {
};

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

Expand Down

0 comments on commit 3d2f8b8

Please sign in to comment.