Skip to main content

SSH "REMOTE HOST IDENTIFICATION HAS CHANGED" warning

If your TPE instance has been installed on Amazon Web Services in a 7.3 version (and also LOWER to the 7.3.5-3 release) a regeneration of the SSH host keys is required. Therefore, it is normal that after upgrading to a TPE version 7.3.5 or higher, these SSH keys are regenerated, and your SSH client displays a warning.

Old keys must be removed from your known_hosts.

Warning example:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:t38NOAYh7Ppp73dBC6YGrfB7YTvyeF7ANY9oPIrXRMo.
Please contact your system administrator.
Add correct host key in /home/rex/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/rex/.ssh/known_hosts:278
Host key for [1.2.3.4]:2222 has changed and you have requested strict checking.
Host key verification failed.