Skip to content

Instantly share code, notes, and snippets.

@goffinet
Created February 2, 2017 18:37
Show Gist options
  • Select an option

  • Save goffinet/c0fa8d14c90f2c18322fc28c24b1a6c3 to your computer and use it in GitHub Desktop.

Select an option

Save goffinet/c0fa8d14c90f2c18322fc28c24b1a6c3 to your computer and use it in GitHub Desktop.
Regeneration ssh host keys
#!/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