XServer VPSでOSの再インストールをした後に、「WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!」と表示されてSSH接続ができなくなりました。
その際に表示されたメッセージは以下のような内容です。
ssh root@210.131.210.183 -i /Users/xxx/.ssh/VPS.pem
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Please contact your system administrator.
Add correct host key in /Users/xxx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/xxx/.ssh/known_hosts:3
Host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking.
Host key verification failed.
これはリモートホストのIDが変わったとの内容です。
この警告には、know_hosts
ファイルの内容を削除することで対応できました。