2

When I use Elastic IPs in I can't use SSH. When I try to login, following message is show

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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.
2
  • What is your question? Commented Mar 1, 2010 at 10:17
  • I got it. after edit .ssh/known_hosts and it's OK,now.
    – saturngod
    Commented Mar 2, 2010 at 17:13

2 Answers 2

3

Edit your .ssh/known_hosts file and delete the line corresponding to your AMI.

The problem is that the first time you connected, ssh saved the remote key of that machine you connected to, and when you enabled Elastic IPs, that remote key changed.

http://developer.amazonwebservices.com/connect/thread.jspa;?messageID=104781&#104781

1

Alternatively, use ssh-keygen -R <hostname|IP address> to remove the entry from the known_hosts file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .