当我使用弹性IP时,我无法使用SSH。 当我尝试login时,显示以下消息
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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.
编辑.ssh / known_hosts文件并删除与AMI对应的行。
问题是,你第一次连接时,ssh保存了你连接的那台机器的远程密钥,当你启用Elastic IP时,那个远程密钥被改变了。
http://developer.amazonwebservices.com/connect/thread.jspa;?messageID=104781𙥍
或者,使用ssh-keygen -R <hostname|IP address>
从known_hosts文件中删除条目。