Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an instance on EC2 that I think I Stopped at one point or another. When I restart it and tried to ssh in, I got those messages about the host key having changed. But why?

Is it because the Elastic IP I'd associated with the instance had to be remapped to it?

Shouldn't the host key be generated once, and not be regenerated on the same host?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The ssh key is never regenerated on the same host.

You are seeing this message because you previously had your Elastic IP connected to a completely different instance.

share|improve this answer
    
I don't see how I got mixed up here, but I must have. –  Ladlestein Aug 3 at 18:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.