Created
February 2, 2017 18:37
-
-
Save goffinet/c0fa8d14c90f2c18322fc28c24b1a6c3 to your computer and use it in GitHub Desktop.
Regeneration ssh host keys
This file contains hidden or 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 | |
| rm /etc/ssh/ssh_host_* | |
| dpkg-reconfigure openssh-server | |
| systemctl restart sshd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment