Ubuntu – Hot to Change a SSH host key?
Follow these steps to regenerate OpenSSH Host Keys Delete old ssh host keys: rm /etc/ssh/ssh_host_* Reconfigure OpenSSH Server: dpkg-reconfigure openssh-server Update all ssh client(s) ~/.ssh/known_hosts files