Raspberry pi 5

Discusión general sobre Raspberry Pi
Responder
ANGELASA
Pi Newbie
Pi Newbie
Mensajes: 3
Registrado: 13 Mar 2024, 11:56
Agradecido: 0
Agradecimiento recibido: 0

Hola, tengo una raspberry pi 5 y soy nuevo en esto, resulta que le instalo la imagen con raspnerry pi imagen y todo bien, le hago un ping para saber la ip y me la, pero al hacer una ssh para meterme en ella me da el error este:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ED25519 key sent by the remote host is
SHA256:2dDOTzHg/cXakxio77gh0BcGhyHGDFg7lrSPW9sIEO8.
Please contact your system administrator.
Add correct host key in /Users/angelasa/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/angelasa/.ssh/known_hosts:3
Host key for 192.168.1.54 has changed and you have requested strict checking.
Host key verification failed.

Ya no que hacer, no se que puede ser esto y como solucionarlo, si algunos lo sabeis me decis, gracias
Avatar de Usuario
Marciano
Pi Beta
Pi Beta
Mensajes: 129
Registrado: 15 Jun 2017, 21:20
Agradecido: 2 veces
Agradecimiento recibido: 19 veces
Contactar:

Lo que te ocurre es que estás accediendo por ssh a una IP a la que ya habías accedido antes pero correspondiente a otra máquina, y tienes guardada la clave de cifrado anterior. Tienes que generar una nueva clave con:

ssh-keygen -f "/home/USUARIO/.ssh/known_hosts" -R "192.168.1.IP"

Cambiando USUARIO e IP por las correspondientes. Cuando vuelvas a acceder por ssh a esa IP te preguntará si quieres guardar la nueva clave y le dices que si. Y ya está ;)
Responder