IBM Support

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

How To


Summary

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 xxx key sent by the remote host is
xxxxxxxxxxxxxxx.
Please contact your system administrator.
Add correct host key in /home/localsshuser/.ssh/known_hosts to get rid of this message.
Offending xxx key in /home/localsshuser/.ssh/known_hosts:x
xxxx host key for xxxxx has changed and you have requested strict checking.
Host key verification failed.
Connection closed

Steps

The host key of the remote system has changed. You will need to do the following:
Signon with local SSH user.
Edit /home/localsshuser/.ssh/known_hosts
Delete the entry that was referenced in the message "Offending xxxxx key in /home/xxxxx/.ssh/known_hosts:x"
To get the new host key added:
ssh -T remoteuser@remotehost
You should get a prompt to add the new host key. 

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CKoAAM","label":"Communications-\u003ESFTP and SSH or Secure Shell"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Document Information

Modified date:
13 September 2022

UID

ibm16620029