SSH remote control problem

I have managed to configure a Raspberry Pi 3 on to the RVR and run commands directly in python. But I am unable to connect to it remotely using SSH.

I am typing ssh pi@192… (my Pi host name)

I get this message …

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:IFmgRfKtokzUNjk+Qx9HR2cTSYZXavM2b3ujlHEsmxI.
Please contact your system administrator.
Add correct host key in C:\Users\alanm/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\Users\alanm/.ssh/known_hosts:1
ECDSA host key for 192.168.0.50 has changed and you have requested strict checking.
Host key verification failed.

what does this mean and how do I fix it please?

1 Like

SSH is telling you that the public key of the Raspberry Pi is not known to your computer and that you do not trust it. You need to get the public key from your Raspberry Pi and install it on your computer so that it is trusted by SSH.

Mike

2 Likes

No problem - I’ve worked it out thanks.

2 Likes

For others running across this, the error you see is because SSH remembers a different key for the host/ip address you are currently using. (Maybe your PI changed addresses to something you used before on the same IP, or you re-imaged a PI and it has a new host key.) If you are connecting to a device you trust, then look at the file it shows in the error, and delete the lines associated with the IP address given (192.168.0.50 in this case.)

2 Likes