+2 votes
in General IT Tips by (71.8k 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

+1 vote
by (349k points)
selected by
 
Best answer

Run the following command and it should solve the issue.

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

Related questions

+2 votes
1 answer
+3 votes
1 answer
+2 votes
1 answer

...