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 killed ssh daemon by mistake. Any chance I can connect to the instance and start it again?

share|improve this question

migrated from stackoverflow.com Oct 26 '11 at 22:18

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers 2

If a reboot does not work and you are running an EBS boot AMI/instance (recommended), then you can get access to the root disk of the instance by attaching and mounting the EBS volume to another instance, looking at log files for errors, fixing the system, and then moving the volume back to the original instance.

I provide specific instructions on how to do this here:

Fixing Files on the Root EBS Volume of an EC2 Instance
http://alestic.com/2011/02/ec2-fix-ebs-root

If you are running an instance-store AMI/instance (not recommended), then you are in trouble and may need to beg Amazon through your premium support contract to see if there is any chance they can make the root disk information available to you.

share|improve this answer
add comment

You can use the AWS console to reboot the instance.

share|improve this answer
    
I was preparing a new instance and installed a new version of open ssh, that for some reason did not start automatically. I lost my connection just after I noticed. So it looks like there is a chance my instance will never start again if I stop it right now and all the work will be lost. –  potomok Oct 26 '11 at 17:51
    
Unless you really hosed the SSH install, a reboot of the instance should bring it back up. YMMV. –  Uriah Carpenter Oct 26 '11 at 20:44
add comment

Your Answer

 
discard

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