SSH key warning message in terminal, should i be worried?

I got this message trying ssh to my router. Should i be worried ?

Things that happened with the rooter: Perform reset (on vendor firmware), Updated all installed packages.

To get rid of this message i removed offending key from known hosts to be able to use ssh again.

Any thoughts ?

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25518 key sent by the remote host is
SHA256:39afeFDmQtdmbvjbJc3mlTFweJWixMHc1gIVez688gh.
Please contact your system administrator.
Add correct host key in /Users/name/.ssh/known_hosts to get rid of this message.
Offending ED25518 key in /Users/name/.ssh/known_hosts:4
Host key for 192.168.1.2 has changed and you have requested strict checking.
Host key verification failed.

No, this is normal if you've recently reset or reflashed (or replaced) the router. Just remove the offending ssh key from your known hosts file on your computer.

4 Likes

Amazing thanks for the swift response Psherman