Created
February 23, 2015 06:29
-
-
Save vodolaz095/9b00d7dfbc5cfc11f1ee to your computer and use it in GitHub Desktop.
Regenerate SSH server keys
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/sh | |
ssh-keygen -q -f /etc/ssh/ssh_host_key -N '' -t rsa1 | |
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa | |
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa | |
ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa -b 521 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment