REMOTE HOST IDENTIFICATION HAS CHANGED

Si vous rencontrez ce problème en vous connectant sur un serveur :

$ ssh my_server_HostName
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
SHA256:111T2222GP333HcO0s444pYS55555ikwp666666ojQ.
Please contact your system administrator.
Add correct host key in /home/heisenberg/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/heisenberg/.ssh/known_hosts:2
RSA host key for my_server_HostName has changed and you have requested strict checking.
Host key verification failed.

Vous constaterez que le message indique le fichier et la ligne problématique :

[...]
Offending RSA key in /home/heisenberg/.ssh/known_hosts:2 <===== Supprimer la 2nde ligne pour pouvoir se co
[...]

Il suffit simplement d’éditer le fichier et de supprimer la ligne (n°2 ici) :

$ vim /home/heisenberg/.ssh/known_hosts

Nouvelle tentative

$ ssh my_server_HostName
The authenticity of host 'my_server_HostName (11.22.222.111)' can't be established.
ECDSA key fingerprint is SHA256:k+fZ/joX6y0RCPDmvVEAsKaozSryIbBI7aGILaSlkQs.
ECDSA key fingerprint is MD5:ab:cd:12:ef:34:56:78:9a:bc:de:ef:12:34:56:78:9a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'my_server_HostName,11.22.222.111' (ECDSA) to the list of known hosts.

heisenberg@my_server_HostName's password:

Remerciements

Quentin E.

Merci à Quentin E.


> Partager <