Stap 19: Aanhangsel: RSA-sleutel probleem
Als de hostnaam die is gekoppeld aan een mac verandert, dan mijn MacBook toont het bericht hieronder wanneer ik probeer in te loggen.
@ 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 eb:98:60:31:52:ac:7b:80:8e:8f:41:64:c1:11:f9:ef. Please contact your system administrator. Add correct host key in /Users/jeffcartwright/.ssh/known_hosts to get rid of this message. Offending RSA key in /Users/♣your-username♣/.ssh/known_hosts:16 RSA host key for 192.168.1.94 has changed and you have requested strict checking. Host key verification failed.
$ sudo vi /Users/♣your-username♣/.ssh/known_hosts
Er is een eenvoudig vast te stellen.
Open een terminal venster van MacBook en de vi editor
dd :w! :q!
Login met je MacBook wachtwoord.
De eerste vermelding is rij 1, druk op de pijltoets-omlaag (16-1) totdat u bevind zich op de 192.168.1.94, of wat dan ook IP het bericht toont.
Type (regel verwijderen, bestand schrijven en afsluiten):
$ ssh pi
Nu zou moeten inloggen werken
The authenticity of host '192.168.1.94 (192.168.1.94)' can't be established. RSA key fingerprint is eb:98:60:31:52:ac:7b:80:8e:8f:41:64:c1:11:f9:ef. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.94' (RSA) to the list of known hosts.
Als gevraagd om te gaan aansluiten, bevestigen door te typen Ja.