From 666bad45fe2d89aafef8f299176d4f6b61fd1425 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Mon, 24 Oct 2022 21:33:01 +0200 Subject: [PATCH] tests/sshserver.pl: re-enable ssh-rsa while using openssh 8.8+ Ref: #9738 --- tests/sshserver.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/sshserver.pl b/tests/sshserver.pl index 576b70635f..1b7b372088 100644 --- a/tests/sshserver.pl +++ b/tests/sshserver.pl @@ -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";