WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

何かの拍子、おそらく異なるラズパイにログインした時とか、に出るsshログインできない現象。

解決策は、

% rm ~/.ssh/known_hosts
% ssh pi@raspberrypi.local
The authenticity of host 'raspberrypi.local (240d:1a:896:8300:acf1:ba5:2b9e:7977)' can't be established.
ED25519 key fingerprint is SHA256:JkCfuJ3qZs3XON3vOOkf2M7RP5HAXNWwSxAnNG0dqck.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'raspberrypi.local' (ED25519) to the list of known hosts.

このように、known_hostsを削除することによって、sshログインが可能となります。

 

admin