Remove SSH Key – Fix Warning ECDSA Host Key Differs

If you ssh to a box and get the following error message:

It means that, or someone is doing something nasty on your network, like a Man in the middle attack, or you have recently reinstalled your host, and now this IP has a new ssh key. In this case, to fix it, simply remove the old key you have matching this ip with the followin command:

It may also be required to remove the key by host name. In this case, the command would look like this:


JohnyLuky has written 54 articles

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">