tests/sshserver.pl: re-enable ssh-rsa while using openssh 8.8+

Ref: #9738
This commit is contained in:
Marc Hoersken 2022-10-24 21:33:01 +02:00
parent 52cc4a85fd
commit 666bad45fe
No known key found for this signature in database
GPG Key ID: 61E03CBED7BC859E

View File

@ -551,6 +551,10 @@ push @cfgarr, "HostKey $hstprvkeyf_config";
if ($sshdid !~ /OpenSSH-Windows/) {
push @cfgarr, "PidFile $pidfile_config";
}
if(($sshdid =~ /OpenSSH/) && ($sshdvernum >= 880)) {
push @cfgarr, 'HostKeyAlgorithms +ssh-rsa';
push @cfgarr, 'PubkeyAcceptedKeyTypes +ssh-rsa';
}
push @cfgarr, '#';
push @cfgarr, "Port $port";
push @cfgarr, "ListenAddress $listenaddr";