Error added: 2007-02-05T22:59:50Z
Call ssh with the -v switch to learn in which file on which line ssh found a match for the host (with the wrong IP address). Delete that line in that file, then retry connecting. Now ssh will ask "Are you sure you want to continue connecting (yes/no)?". Answer yes, and ssh will generate a new line in the known_hosts file with the correct IP address.
you can also edit ~/.ssh/known_hosts (or ~/.ssh/known_hosts2) to remove the line for a given host after its IP address changes
If the known_hosts file contains a record with the correct hostname but no IP address, just append a comma followed by the IP address. If the _hosts file contains a record with the correct hostname and wrong IP address, just correct the IP address.
rm ~/.ssh/known_hosts
If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people
struggling with this too.
If you want to be notified via email when this is solved, enter your email address here: