Basic Compute
AWS Services
- Amazon Elastic Compute Cloud (EC2)
Summary
You have been given a broken EC2 instance that is not responding to SSH connections. You are required to troubleshoot the issue and fix the instance so that it is accessible via SSH. Possible causes could be that the instance is stopped or the security group is misconfigured.
Task
You’ve received an EC2 instance that is currently inaccessible. Your goal is to identify the issue, resolve it, and restore SSH connectivity using the provided credentials.
- Ensure the EC2 instance is running and accessible.
- Verify that the instance has an attached security group allowing SSH (port 22) from your IP address.
- Ensure the instance has network connectivity and a public IP address.
Verification:
- Confirm you can connect to the instance via SSH using the provided username and password.
- Validate that basic Linux commands (e.g.,
ls,whoami) execute successfully after login.
Hints:
- Check the instance’s current state and network configuration using the AWS Management Console or CLI.
- Review the security group rules for the instance, ensuring that inbound SSH traffic is allowed from your public IP.
- Verify that the instance’s subnet has an Internet gateway, and its route table is configured correctly for public access.
Last updated on