Sometimes you may need to remove old ssh host keys from your known_hosts file. While you can edit this file by hand, there’s also a command that will let you remove the offending key(s) based on the hostname or IP:
ssh-keygen -R <Hostname or IP Address>
Leave a Reply