mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:53:33 +03:00
sshserver.pl: add option to enable KEX algorithms in sshd
Necessary when the libssh2/libssh client library does not support KEX algos offered by default by the OpenSSH server. E.g. libssh2 with WinCNG combined with OpenSSH 10+. Also: use this option in GHA/windows. Follow-up to3b8bb1a86a#21219 Follow-up toc98d0a2e9a#21220 Closes #21438
This commit is contained in:
parent
d19a039472
commit
41f3f94d91
2 changed files with 5 additions and 0 deletions
|
|
@ -630,6 +630,9 @@ push @cfgarr, 'HostbasedAuthentication no';
|
|||
push @cfgarr, 'HostbasedUsesNameFromPacketOnly no';
|
||||
push @cfgarr, 'IgnoreRhosts yes';
|
||||
push @cfgarr, 'IgnoreUserKnownHosts yes';
|
||||
if(($sshdid =~ /OpenSSH/) && ($sshdvernum >= 700) && $ENV{'CURL_TEST_SSH_ENABLE_KEX'}) {
|
||||
push @cfgarr, 'KexAlgorithms +' . $ENV{'CURL_TEST_SSH_ENABLE_KEX'};
|
||||
}
|
||||
if(($sshdid =~ /OpenSSH/) && ($sshdvernum >= 750) && $ENV{'CURL_TEST_SSH_DISABLE_KEX'}) {
|
||||
push @cfgarr, 'KexAlgorithms -' . $ENV{'CURL_TEST_SSH_DISABLE_KEX'};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue