[resolved] Patchbox Os: first run with ssh not possible

Hi there,
I try to reach my Raspberry Pi 3B with PatchboxOs and I got this message

cyril@Kiki:~$ ssh patch@192.168.1.21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:r9HSjQWCfswywkJoHhK0S8ggUpar7pZTlIi50sGV4lA.
Please contact your system administrator.
Add correct host key in /home/cyril/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/cyril/.ssh/known_hosts:3
  remove with:
  ssh-keygen -f "/home/cyril/.ssh/known_hosts" -R "192.168.1.21"
Host key for 192.168.1.21 has changed and you have requested strict checking.
Host key verification failed.

I did the ssh-keygen command but this one didn’t worked.

I don’t know what to do to solve this problem. Any clue?

Thanx!

1 Like

Ok I found the answer by myself!
I did

sudo ssh-keygen -f "/home/cyril/.ssh/known_hosts" -R "192.168.1.21"

Thanx to myself! :sweat_smile: :face_with_hand_over_mouth:

Yes, this situation usually occurs each time you reinstall the OS to your Raspberry Pi - its IP usually remains the same in your network, but the system fingerprint changes, which prompts SSH to warn you and have you verify if this was expected and take appropriate action.

1 Like

@Giedrius : thanx for your answer! :slight_smile:
I understand in a better way now.

1 Like