martes, 15 de abril de 2014

Error SSH : WARNING: POSSIBLE DNS SPOOFING DETECTED! (Solucion)


Al cambiar un servidor de IP e intentar entrar via ssh dice el siguiente error:



# ssh  123.123.123.123
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for enwserver.net has changed,
and the key for the corresponding IP address 216.55.138.206
is unchanged. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
Offending key for IP in /root/.ssh/known_hosts:68
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
17:0b:e2:11:c3:73:04:8c:43:b3:38:da:8f:f7:87:48.
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:27
RSA host key for enwserver.net has changed and you have requested strict checking.
Host key verification failed.


Solución

Edita el archivo
# nano /root/.ssh/known_hosts

elimina el renglón que tiene el IP o nombre de host con problemas, para este ejemplo tendría un contenido similar a:

12.12.12.12 ssh-rsa AAAAB3NzaC1yc2EAAAAB....
[23.23.23.23] ssh-rsa AAAAB3NzaC1yc2EAAAABIwA.....

[bd.server.com],[45.45.45.45] ssh-rsa
123.123.123.123 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAA...
78.78.78.78 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQE....

47.47.47.47 ssh-rsa AAAAB3NzaC1yc2EAAAABIwA.....
58.58.58.58 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAA.......


en donde eliminamos el renglón rojo y listo.







1 comentario:

  1. a mi me pasa lo mismo pero cdo voy a editar el archivo no encuentro en ninguna linea que este explicito el nombre o direccion del host

    ResponderEliminar

Ejemplo de factura electrónica 2022 en Panamá (DGI)

Código fuente Facturación 2022 Panamá Panamá comenzó el proceso de migración a facturación electrónica,  actualmente ya salieron los primero...