Remove Entry from Known Host

time to read 1 min | 87 words

Sometimes I am moving my domain from one server to another and facing this problem

Add correct host key in /home/rezha/.ssh/known_hosts to get rid of this message.
Offending key in /home/rezha/.ssh/known_hosts:60
RSA host key for has changed and you have requested strict checking.
Host key verification failed.

I am just too lazy to find line 60 of known_host I ended up deleting the entire known_host. Use this command to remove entries from known_hosts:

ssh-keygen -R

Change it with your own conflicted hostname or IP address

Related Post:

  1. Aug 20, 2015 Installing or Upgrading PostgreSQL 9.4 on Ubuntu 14.04
  2. Jul 29, 2015 Fix Locale Settings Error On Ubuntu Server 14.04
  3. Apr 26, 2015 Installing Varnish with nginx on Ubuntu 14.04
  4. Apr 25, 2015 Disabling Apport Error Reporting on Ubuntu
  5. Feb 07, 2015 PostgreSQL 9.4 failed to start on Manjaro
  6. Jan 24, 2015 MariaDB error failed to start, errno 12