SSH: Replace old RSA keys with a new set

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2015-08-20 23:26:49 +01:00
parent 04da8aa70a
commit ea0033d962
2 changed files with 3 additions and 12 deletions

View File

@@ -47,6 +47,9 @@ sed -i /etc/ssh/sshd_config \
# Move away old and unsupported keys
mv -f /etc/ssh/ssh_host_dsa_key{,.old}
# Regenerating weak RSA keys
mv -f /etc/ssh/ssh_host_key{,.old}
mv -f /etc/ssh/ssh_host_rsa_key{,.old}
# Start services
/etc/init.d/dnsmasq start