[ec2-beta] Startup error?

Eric Hammond ehammond at thinksome.com
Mon May 4 21:45:59 BST 2009


Micah:

If you're sure it's the first time you are trying to ssh when you get
this error, then it's probably EC2 giving you an instance at the same IP
address as a previous one you had connected to (as Don Coleman pointed out).

If it is the second ssh attempt (even if the first failed) then you
might be running into this problem I reported:

  https://bugs.launchpad.net/ubuntu-on-ec2/+bug/370605

When my automated scripts fire up a new instance of an official Ubuntu
image, wait for sshd to accept connections, and then try to ssh in, I
always get "Permission denied" because the authorized_keys is not set up
early enough, and on the second attempt I get the "REMOTE HOST
IDENTIFICATION HAS CHANGED" error because the ssh host key was not set
up early enough.

For the "Permission denied" problem I have also submitted this report:

  https://bugs.launchpad.net/ubuntu-on-ec2/+bug/370628

which may also be the cause of a problem reported by Greg Lindholm on
the ec2ubuntu group:

http://groups.google.com/group/ec2ubuntu/browse_thread/thread/996d2911c2926ccf

--
Eric Hammond
ehammond at thinksome.com



Micah Walter wrote:
> Hi,
> Sometimes when I spin up a new instance I get this error message when  
> trying to ssh or scp for the first time...
> 
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @    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
> 
> 
> There is more info that I didn't copy there... anyway, it seems like  
> this happens when I try to ssh or scp to the new instance too quickly.  
> However, once I get this message I am pretty sure that I am not able  
> to log into this instance and I have to terminate it and begin again.  
> I haven't really tested this to see if I just need to wait it out a  
> little longer... In the AWS Console it says that my instance is  
> running...
> 
> anyone else seen this? I am getting this on both the older beta i386  
> image for Intrepid as well as the newer RC1..
> 
> -micah
> 




More information about the Ec2-beta mailing list