When you ssh to a server where the host key (RSA) has changed then you will get an error message as shown in the image:
The error in the above example :
Offending RSA key in /home/username/.ssh/known_hosts:8
Looking in to the error message, we can find the offending RSA key and its position in the known_hosts file. In the above example image the offending key is at line 8. (
Remove offending RSA key in ~/.ssh/known_hosts file with one line command
4/
5
Oleh
Admin