jueves, 15 de mayo de 2014

Como solucionar el error"Warning: Remote Host Identification Has Changed "


Despues de formatear mi servidor con Elastix y intentar accesarlo nuevamente desde mi desktop con Centos 6.5 me tira el siguiente error:

[root@Eleazar ~]# ssh -p22 root@192.168.2.100
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
13:b7:0b:b5:8c:58:ed:77:83:57:e8:76:cc:82:11:9f.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:2
RSA host key for 192.168.2.100 has changed and you have requested strict checking.
Host key verification failed.


El error se soluciona de una manera muy sencilla con el siguiente comando

# ssh-keygen -R {server-name}
# ssh-keygen -R {server-ip-address}


En este caso
# ssh-keygen -R 192.168.2.100

y esta es la salida que muestra

[root@Eleazar ~]# ssh -p22 root@192.168.2.100
The authenticity of host '192.168.2.100 (192.168.2.100)' can't be established.
RSA key fingerprint is 13:b7:0b:b5:8c:58:ed:77:83:57:e8:76:cc:82:11:9f.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '192.168.2.100' (RSA) to the list of known hosts.
root@192.168.2.100's password:
Last login: Wed May 14 19:15:38 2014

Welcome to Elastix


Espero les haya ayudado.


Saludos desde Guadalalajara, Mexico.

Eleazar Reyes Lopez
MasterWan Soluciones Informaticas
www.masterwan.com

No hay comentarios:

Publicar un comentario