Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a running EC2 instance with Debian 10.04LTS that I'd like to change the root SSH key of. How do I do this, since amazon set up that key initially for me? Can I just change it the way I'd normally change a user's SSH login key? Or will EC2 get confused for some reason?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

There is currently no way to change it without terminating the instance. This site explains in further detail on how you should proceed in order to change the root SSH key and preserve all the data on the disk.

http://support.rightscale.com/06-FAQs/FAQ_0111_-_How_do_I_change_the_SSH_Key_on_a_running_EC2_instance%3F

share|improve this answer
    
Really? No way? I see that rightscale recommends terminating the instance, but how deep into the linux kernel do EC2's tendrils reach that we can't reconfigure login data on the server? Thanks for the link, BTW. –  Leopd Jun 2 '11 at 18:20
1  
Nope, just checked the Amazon Web Services forums, same answer. Can't change it without terminating the instance. forums.aws.amazon.com/thread.jspa?messageID=182426&#182426 –  paradd0x Jun 2 '11 at 18:53

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.