bash-3.1$ rm .ssh/known_hosts
Der Test kann nun erfolgen:
isysxx:[ssh] >./bin/ssh -p 1081 isysxx
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
d2:76:82:9d:bf:99:6f:c4:34:f5:a0:f8:54:8f:8f:72.
Please contact your system administrator.
Add correct host key in /home/rex/fi4/ia02/sxxxx/.ssh/known_hosts to get rid of this message.
Offending key in /home/rex/fi4/ia02/sxxxx/.ssh/known_hosts:7
RSA host key for isysxx has changed and you have requested strict checking.
Host key verification failed.
Was ist passiert?
Da wir mit dieser Maschine bereits gearbeitet haben, steht in der Datei
- ~sxxxx/.ssh/known_hosts
bereits ein RSA Schlüssel für diese Maschine, der für unseren "privaten" sshd natürlich nicht stimmt.
Dies passiert übrigens auch, wenn auf dem Rechner ein neues System installiert wird, aber auch wenn der Rechner korrumpiert ist.
Die Lösung erfolgt einfach durch Löschen der Eintragung für die isysxx.
Etwa
isysxx:[ssh] >vi ~sxxxx/.ssh/known_hosts
und erneut isysxx:[ssh] >./bin/ssh -p 1081 isysxx