Whenever a system/server is re-installed or the host key changed for any reason, you would have seen the “host key verification failed”. And as usual you would have to go to known_hosts file and delete the offending key. I will show you 2 simple ways to do this here.
The output that you get in such scenario is:
Offending ECDSA key in ~/.ssh/known_hosts:4
First, you can use sed to directly delete the offending key with a command like this :
Continue reading