Problemas de Autenticación via SSH

SSH es un protocolo bastate seguro, trabaja con claves publicas y privadas, lo que hace aveces tenr ciertos problemas, especialmente cuando se realian accesos de maquinas distintas en periodos de tiempo bastante alejados, no son problemas de funconamiento, sino de autentificacion, por lo que aveces se pone algo dificil la mision de conectarse a un servidor aunque te sepas las claves de ingreso.

1º Problema

Al tratar de conectarnos recibimos una respuesta del tipo

No RSA host key is known for XXXXXXXXXX and you have requested strict checking.
Host key verification failed.

La solución a esto es intentar loguearse de la siguiente forma

ssh -oStrictHostKeyChecking=ask user@XXXXXXXXXX

2º Problema

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
c6:70:0f:ff:2d:a7:40:b8:82:e5:ed:35:b4:d6:77:ca.
Please contact your system administrator.
Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
Offending key in /home/user/.ssh/known_hosts:8
RSA host key for server has changed and you have requested strict checking.
Host key verification failed.

Parece un problema complejo, pero se soluciona simplemente eliminando .ssh/known_hosts alojado en el HOME del usuario que intenta conectarse al servidor.

pequeños tips para los que requieren conectarse via SSH y se encuentran con estas sorpresas.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Inline Feedbacks
View all comments
Don_curioso
Don_curioso
17 years ago

maldicion ahora se como ¬¬ .. jejej que flojo soy pero esa era la razon del porque siempre me pasaba eso ¬¬

1
0
Would love your thoughts, please comment.x
()
x