Elastic IPを別のホストに関連付けた後でmacのターミナルからsshでアクセスしようとすると以下のようなエラーが出る。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 00:88:66:99:77:aa:bb:cc:dd:ee:ff:11:22:33:44:55. Please contact your system administrator. Add correct host key in /Users/name/.ssh/known_hosts to get rid of this message. Offending key in /Users/name/.ssh/known_hosts:7 RSA host key for 123.123.123.123 has changed and you have requested strict checking. Host key verification failed.
以前に同じ証明書で接続したホストとフィンガープリントが変わっていると警告してくれている。以下のようにして対処する。
ssh-keygen -R 123.123.123.123