From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/2] core190: Load SSH RSA key on legacy systems Date: Mon, 09 Dec 2024 11:37:11 +0000 Message-ID: <20241209113711.2684032-2-michael.tremer@ipfire.org> In-Reply-To: <20241209113711.2684032-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4029666194195647571==" List-Id: --===============4029666194195647571== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- config/rootfiles/core/190/update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/rootfiles/core/190/update.sh b/config/rootfiles/core/190/= update.sh index 16ef608e2..3950ba903 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 =20 +# Load the RSA key on systems that still have one +if [=C2=A0-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 =20 --=20 2.39.5 --===============4029666194195647571==--