From: Michael Tremer Date: Mon, 9 Dec 2024 11:37:11 +0000 (+0000) Subject: core190: Load SSH RSA key on legacy systems X-Git-Tag: v2.29-core190~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=804ac341a18718e5593ef8d77670d28018515aa7;p=ipfire-2.x.git core190: Load SSH RSA key on legacy systems Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/190/update.sh b/config/rootfiles/core/190/update.sh index 16ef608e2d..3950ba9039 100644 --- a/config/rootfiles/core/190/update.sh +++ b/config/rootfiles/core/190/update.sh @@ -104,6 +104,14 @@ ldconfig # Filesytem cleanup /usr/local/bin/filesystem-cleanup +# Load the RSA key on systems that still have one +if [ -e "/etc/ssh/ssh_host_rsa_key" ]; then + ( + echo "# Load the legacy RSA key - Deprecated in Core Update 190" + echo "HostKey /etc/ssh/ssh_host_rsa_key" + ) > /etc/ssh/sshd_config.d/rsa.conf +fi + # Apply local configuration to sshd_config /usr/local/bin/sshctrl