ssh - ERROR : WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Si al intentar conectarte a un servidor por  ssh  te da el siguiente error :

[jose@linux ~]$ ssh root@192.168.178.61
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:vch7adBuhO+qSxew3gowwixr9pNIrIe2edWUv6ID3y4.
Please contact your system administrator.
Add correct host key in /home/jose/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/jose/.ssh/known_hosts:13
ECDSA host key for 192.168.178.61 has changed and you have requested strict checking.
Host key verification failed.


Para solucionar el problema tienes que teclear el siguiente comando para limpiar la clave de la cache.:

ssh-keygen -R <remote-system-ip-address>
ssh-keygen -R 192.168.178.61
[jose@linux ~]$ ssh-keygen -R 192.168.178.61
# Host 192.168.178.61 found: line 13
/home/jose/.ssh/known_hosts updated.
Original contents retained as /home/jose/.ssh/known_hosts.old
[jose@linux ~]$ ssh root@192.168.178.61
The authenticity of host '192.168.178.61 (192.168.178.61)' can't be established.
ECDSA key fingerprint is SHA256:vch7adBuhO+qSxew3gowwixr9pNIrIe2edWUv6ID3y4.
ECDSA key fingerprint is MD5:93:68:aa:11:b7:0c:66:70:6f:30:02:3b:35:a3:19:4c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.178.61' (ECDSA) to the list of known hosts.
root@192.168.178.61's password: 
Last login: Sun Jan  8 11:49:15 2017

Comentarios