Page 1 sur 1

Résolu : reinstallation et ssh

Posté : sam. 28 nov. 2020 07:31
par zezinho71
Bonjour,

j'ai voulu réinstaller repartir de zéro avec mon Raspberry (formatage carte sd + reinstallation raspbian).

a priori l'adresse ip n'a pas changée quand je fais ifconfig mais je n'arrive plus a me connecter en ssh, j'ai le message suivant :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:lm1IbNFZZTTzLAn2oZKM/BTTjtaJ+QCnz3tumGqVw/0.
Please contact your system administrator.
Add correct host key in C:\\Users\\NICO/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\NICO/.ssh/known_hosts:1
ECDSA host key for 192.168.1.72 has changed and you have requested strict checking.
Host key verification failed.

quelqu'un peut-il m'aider?

Re: reinstallation et ssh

Posté : sam. 28 nov. 2020 08:47
par Bud Spencer
supprimes la ligne qui correspond à l'ip dans fichier C:/Users/NICO/.ssh/known_hosts ou si tu n'as pas d'autre clé pour d'autre connexion ssh tu peux aussi carrément supprimer le fichier known_hosts.

ou sinon avec une commande powershell : ssh-keygen -R adresse.ip

Re: reinstallation et ssh

Posté : dim. 29 nov. 2020 08:44
par zezinho71
Ha ok, je pensais que le problème était côté Raspberry...

Je viens de supprimer ce fichier et ... ça marche.

Le fichier s'est recréé automatiquement sur mon PC.

Merci beaucoup.