Les clés SSH sont très utiles car elles permettent une authentification automatique aux machines.

Néanmoins, elles peuvent être amenées à changer (réinstallation de la machine, modification de nom, etc.).
C'est alors que vous pouvez voir apparaître ce type de message.
cvacquie@sbr4-p121:~$ ssh -Y cvacquie@bioinfo.sb-roscoff.fr
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for bioinfo.sb-roscoff.fr has changed,
and the key for the corresponding IP address 192.168.1.222
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 /home/fr2424/sib/cvacquie/.ssh/known_hosts:3
remove with: ssh-keygen -f "/home/fr2424/sib/cvacquie/.ssh/known_hosts" -R 192.168.1.222
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
17:00:96:bb:72:20:16:29:eb:c4:12:f7:a0:be:1e:8c.
Please contact your system administrator.
Add correct host key in /home/fr2424/sib/cvacquie/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/fr2424/sib/cvacquie/.ssh/known_hosts:76
remove with: ssh-keygen -f "/home/fr2424/sib/cvacquie/.ssh/known_hosts" -R bioinfo.sb-roscoff.fr
RSA host key for bioinfo.sb-roscoff.fr has changed and you have requested strict checking.
Host key verification failed.
Trois possibilités s'offrent à vous :
-
Utiliser la commande préconisée par SSH, si le message ci-dessus vous l'indique :
ssh-keygen -f "/home/fr2424/sib/cvacquie/.ssh/known_hosts" -R bioinfo.sb-roscoff.fr
-
Éditer le fichier contenant les clés SSH
Dans mon cas, il s'agit de celui-ci :
/home/fr2424/sib/cvacquie/.ssh/known_hosts
Chacune des lignes présentes dans ce fichier correspond à la clé SSH d'une machine.
La clé SSH de la machine nommée "bioinfo.sb-roscof.fr" a été modifiée, il me faut donc la supprimer.
Pour ce faire, supprimer la ligne correspondant à cette machine. Le message d'erreur ci-dessus nous donne une indication sur l'emplacement de la clé : ligne 76.
-
Supprimer le fichier contenant les clés SSH
Ce dernier sera regénéré à la prochaine tentative de connexion SSH.
Cependant, cela supprimera l'intégralité des clés déjà mémorisées.
Ensuite, réessayer de vous connecter :
cvacquie@sbr4-p121:~$ ssh -Y cvacquie@bioinfo.sb-roscoff.fr
The authenticity of host 'bioinfo.sb-roscoff.fr (192.168.1.222)' can't be established.
RSA key fingerprint is 17:00:96:bb:72:20:16:29:eb:c4:12:f7:a0:be:1e:8c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'bioinfo.sb-roscoff.fr' (RSA) to the list of known hosts.
Last login: Tue May 6 08:32:41 2014 from 192.168.14.2
Plateforme ABIMS (Analysis and Bioinformatics for Marine Science)
********************************************************************
IMPORTANT: Le serveur NZ de doit pas executer de traitement
Utiliser systematiquement les noeuds de calcul SVP
********************************************************************
********************************************************************
Important : Travaillez imperativement sur /projet
- performances
- non dependances du /home (brazil)
- volumetrie
http://abims.sb-roscoff.fr/faq
support.abims@sb-roscoff.fr
********************************************************************
A votre disposition actuellement : 614 coeurs
. .--. . . .-.
/ \ | ) o |\ /|( )
/___\ |--: . | \/ | `-.
/ \ | ) | | |( )
' `'--'-' `-' ' `-'
Le contenu datant de plus de 30 jours du dossier /scratch est efface automatiquement.
[cvacquie@nz ~]$
Répondez "yes" pour ajouter la nouvelle clé SSH.