Last active
January 7, 2022 12:17
-
-
Save steveathon/51ecb24f9d962fab27e2920e4a0ad689 to your computer and use it in GitHub Desktop.
Reset SSHd Keys on Cloned Machines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Note this doesn't reset MAC addresses, your host is responsible for that. | |
sudo /bin/rm -v /etc/ssh/ssh_host_* | |
sudo dpkg-reconfigure openssh-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment