Errore REMOTE HOST IDENTIFICATION HAS CHANGED Soluzione

Per risolvere  l’errore Remote Host Identification Has Changed

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!            @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

e possibile procedere in più modi la via principale per rimuovere le keys associate al computers

 ssh-keygen -R ssh.server.ip.address

oppure

 ssh-keygen -R {ssh.server.ip.address}

esempi:

ssh-keygen -R 192.168.1.177  
o
ssh-keygen -R {82.156.5.190}

oppure è possibile aggiungere la host key coerrtta nel file /home/user/.ssh/known_host

Ubuntu 12.10 Host key verification failed.

In ubuntu 12.10 il messaggio di remote host identification has changed evidenzia gia il comando (giallo) per il reset della key.

maurizio@lub12-10-i2c:~$ ssh -X root@192.168.1.107
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
05:12:12:c1:e9:c6:bc:27:d4:83:2f:62:0b:9e:ff:80.
Please contact your system administrator.
Add correct host key in /home/maurizio/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/maurizio/.ssh/known_hosts:12
  remove with: ssh-keygen -f "/home/maurizio/.ssh/known_hosts" -R 192.168.1.107
RSA host key for 192.168.1.107 has changed and you have requested strict checking.
Host key verification failed.

Reset key

maurizio@lub12-10-i2c:~$ ssh-keygen -f "/home/maurizio/.ssh/known_hosts" -R 192.168.77.102
/home/maurizio/.ssh/known_hosts updated.
Original contents retained as /home/maurizio/.ssh/known_hosts.old
Annunci