SSH: Remote Host Identification Has Changed

Skrevet af: Patrick Kerwood

Overstående fejl, kan have flere årsager. Du har måske flyttet dit domæne til en anden server. Du har måske geninstalleret din server eller bare geninstalleret SSH. I bund og grund kommer fejlen fordi, at din servers ID, er et andet end din Linux klient forventede.

Fejl meddelelsen ser, i sin helhed, sådan ud.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
ck:3b:c2:47:g4:bb:9a:j8:eb:4sa:c5:z9:d8:e1:8b:62.
Please contact your system administrator.
Add correct host key in /home/kerwood/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/kerwood/.ssh/known_hosts:6
  remove with: ssh-keygen -f "/home/kerwood/.ssh/known_hosts" -R 10.0.0.13
ECDSA host key for 10.0.0.13 has changed and you have requested strict checking.
Host key verification failed.

For at fjerne det gamle ID fra ~/.ssh/known_hosts kører du nedenstående kommando. “IP/URL” er selvfølgelig den ip eller det domæne du bruger til at connecte med.
ssh-keygen -R IP/URL

En anden måde at håndtere dette problem på, er simpelthen bare at slette known_hosts filen. Den skal nok generer sig selv igen.
rm ~/.ssh/known_hosts


27 sep 2013   | Alle · Fixes

Leave a Reply