Reset SSH Keys

From KlavoWiki
Revision as of 04:41, 17 March 2018 by David (Sọ̀rọ̀ | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

To reset the SSK Keys of the Debian server.

vi /usr/sbin/ssh-keys-reset
#!/bin/bash
rm -f /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
chmod +x /usr/sbin/ssh-keys-reset