Problem to connect SSH

When I try to connect in SSH, the Terminal tell me: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

I didn't try any thing because I don't know what to do.

Terminal Logs
MyComputer:~ MyName$ ssh pi@192.168.0.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@----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:m0UOJ6WqV/NeIG+LsV2+YDXVYzoqZl5uU9ZT+/pwtqg.
Please contact your system administrator.
Add correct host key in /Users/MyName/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/MyName/.ssh/known_hosts:5
ECDSA host key for 192.168.0.5 has changed and you have requested strict checking.
Host key verification failed.

Additional information about my network
I'm on a Mac Book Pro and OctoPrint is on a Raspberry Pi 3B

Sorry for my english because I'm french.
Milo

On your own workstation:

nano ~/.ssh/known_hosts

Then delete the 5th line. Save and exit with Ctl-o, Ctl-x. Then try to connect with ssh again.

Alternately you could run this exact command and do the same:

sed -i '' '/octopi\.local/d' ~/.ssh/known_hosts
1 Like