Einträge über known_hosts

Alte SSH host keys aus der Datei known_hosts entfernen

Bei mir zuhause arbeite ich häufiger mal über SSH auf einem Linux-Server. Wenn man den Server dann neu aufsetzt und bei der Installation des SSH-Deamons neue Keys generiert werden, hat man beim Einloggen u.U. Probleme. Folgende Meldung könnte dann beim Herstellen der SSH-Verbindung auftreten:

jan@klappkommode:~$ ssh jan@192.168.1.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
**:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**.
Please contact your system administrator.
Add correct host key in /home/jan/.ssh/known_hosts to get rid of this message.
Offending key in /home/jan/.ssh/known_hosts:2
RSA host key for 192.168.1.3 has changed and you have requested strict checking.
Host key verification failed.

Weiterlesen…