Merge pull request #105 from sualko/fix-ssh-host-key

remove ssh host keys and enable regeneration
This commit is contained in:
Jarno Rantanen 2020-03-06 16:20:50 +02:00 committed by GitHub
commit 795d17c38a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"