remove ssh host keys and enable regeneration

fix #100
This commit is contained in:
sualko 2020-03-04 09:34:28 +01:00
parent 818a81335f
commit c0bc600380

View File

@ -174,6 +174,9 @@ ssh "chromium-browser --version | cut -d ' ' -f 1-2" > temp
VERSION_CHROMIUM="$(cat temp)" VERSION_CHROMIUM="$(cat temp)"
rm temp rm temp
working "Removing SSH host keys & enable regeneration"
ssh "sudo rm -f -v /etc/ssh/ssh_host_*_key* && sudo systemctl enable regenerate_ssh_host_keys"
working "Removing temporary SSH pubkey, disabling SSH & shutting down" working "Removing temporary SSH pubkey, disabling SSH & shutting down"
ssh "(echo > .ssh/authorized_keys) && sudo systemctl disable ssh && sudo shutdown -h now" ssh "(echo > .ssh/authorized_keys) && sudo systemctl disable ssh && sudo shutdown -h now"