9

I killed ssh daemon by mistake. Any chance I can connect to the instance and start it again?

2 Answers 2

9

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.

1

You can use the AWS console to reboot the instance.

2
  • 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, 2011 at 17:51
  • Unless you really hosed the SSH install, a reboot of the instance should bring it back up. YMMV. Oct 26, 2011 at 20:44

You must log in to answer this question.