I ran shutdown from within an ssh session but my instance still shows up as running when I query it with DescribeInstances and I can shell into it. Whats happening?
This is a “feature” of the shutdown command. If you issue shutdown without a -h (halt) flag it shuts down the network and switches to single user mode. The instance is still running but without a network. You should always use shutdown -h when working inside an Amazon EC2 instance. You can shut the instance down using the TerminateInstances call (ec2-terminate on the command line).
Related Questions
- I ran shutdown from within an ssh session but my instance still shows up as running when I query it with DescribeInstances and I can shell into it. Whats happening?
- Ive just installed Ubuntu Linux on my computer. Id like to know - how to shutdown Ubuntu box over ssh session?
- Why don’t I see the 24th line in the output when I am running a DOS program within a ssh session?