Skip to content

Instantly share code, notes, and snippets.

@steveathon
Last active January 7, 2022 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveathon/51ecb24f9d962fab27e2920e4a0ad689 to your computer and use it in GitHub Desktop.
Save steveathon/51ecb24f9d962fab27e2920e4a0ad689 to your computer and use it in GitHub Desktop.
Reset SSHd Keys on Cloned Machines
#!/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