+2 votes
in General by (11.1k points)

When I try to SSH to a remote machine, I am getting the following error 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:FgFkKsD0Ig1Q+jbyJFJVjkQ67r0z9dfwTjEPCYts4do.

Please contact your system administrator.

Add correct host key in /home/meuser/.ssh/known_hosts to get rid of this message.

Offending ECDSA key in /home/meuser/.ssh/known_hosts:23

ECDSA host key for x.x.x.x has changed and you have requested strict checking.

Host key verification failed.

1 Answer

0 votes
by (15.8k points)

Run the following command and it should solve the issue.

ssh-keygen -R "you server hostname or ip"

...