Reset SSH Keys

From KlavoWiki
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