Troubleshooting
If you receive something like this message:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:HwCVPtpeot4ZyxQj8XFNONZPMdUkWt1ssFMTgDZsnLE.
Please contact your system administrator.
Add correct host key in /Users/username/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/username/.ssh/known_hosts:21
ECDSA host key for 192.168.0.227 has changed and you have requested strict checking.
Host key verification failed.
On the MacBook, run this command:
$ sudo nano /Users/♣your-username♣/.ssh/known_hosts
go to the offending line (sshit-underscore 21), in this case it is 21. Hit CTRL-k, which deletes the line
Then CTRL-o and CTRL-x to write and exit the editor