]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Renew all ssh keys from previous installations
authorManiacikarus <maniacikarus@ipfire.org>
Wed, 5 Nov 2008 18:40:18 +0000 (19:40 +0100)
committerManiacikarus <maniacikarus@ipfire.org>
Wed, 5 Nov 2008 18:40:18 +0000 (19:40 +0100)
config/rootfiles/updater/update.sh

index ad84c3b61e4a7ef9a07e2a1a6de2e93ef643106e..037209dece580c2add313ef5b85205cca5e2eb82 100755 (executable)
@@ -249,3 +249,11 @@ chmod +x /tmp/remove_obsolete_paks
 echo
 echo Please wait until pakfire has ended...
 echo
+
+echo
+echo Finaly were going to renew all ssh keys
+echo
+
+rm -f /etc/ssh/ssh_host_rsa_key* && ssh-keygen -qf /etc/ssh/ssh_host_rsa_key -N ''
+rm -f /etc/ssh/ssh_host_key* && ssh-keygen -qf /etc/ssh/ssh_host_key -N '' -t rsa1
+rm -f /etc/ssh/ssh_host_dsa_key* && ssh-keygen -qf /etc/ssh/ssh_host_dsa_key -N '' -t dsa