- Newest
- Most votes
- Most comments
Hello.
Have you tried connecting with Systems Manager Session Manager instead of SSH?
If SSM Agent is installed on EC2 and the appropriate IAM role is set, you can connect.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html
Although it may not be possible to obtain this information depending on the instance type you are using with EC2, I also recommend checking the system log.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html#instance-console-console-output
Hi jeff Check these troubleshoot to resolve the issue:
The issue is likely related to the upgrade from Ubuntu 18.04 to 20.04 causing the EC2 instance to hang during boot. Here's how to troubleshoot and potentially fix it:
Check boot logs: While you can't access the server directly, you can leverage AWS serial console access (even without a configured user). This will display boot logs which might indicate the reason for the hang AWS Troubleshoot Linux instances with failed status checks
Identify the culprit: Look for errors or warnings in the boot logs around the time the instance hangs. This might point you towards a specific service or driver causing the issue.
Recovery Instance: If the logs aren't clear, consider launching a recovery instance. Attach the original instance's root disk to the recovery instance and access it as a secondary volume. This allows you to diagnose the issue from a functional system.
AWS Support: If these steps don't resolve the issue, consider contacting AWS support. They have deeper access to instance logs and can provide further guidance.
https://docs.aws.amazon.com/ec2/
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html
Thanks a recovery instance seems like a good idea. Since I can't ssh to that server directly hopefully that will help me get at what I am looking for. I will give this a try thanks.
Relevant content
- asked 3 months ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 months ago

Thank the SSM looks interesting, but I think that is something that I might have needed to install and have working before hand correct?
If you are using the Ubuntu AMI provided by AWS, SSM Agent will probably be pre-installed. https://docs.aws.amazon.com/systems-manager/latest/userguide/ami-preinstalled-agent.html