]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core190: Load SSH RSA key on legacy systems
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Dec 2024 11:37:11 +0000 (11:37 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 13 Dec 2024 14:37:35 +0000 (14:37 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/190/update.sh

index 16ef608e2d50d70856112ac8a8ba763bc0b8f202..3950ba903984e0a8417d9880d1d495621d8b5f30 100644 (file)
@@ -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