T The Triage ManualTechnical Guides for IT Emergencies
P2 · Cloud & Hybrid Infrastructure

AWS EC2 Instance Unreachable — SSH/RDP Connection Refused

An EC2 instance is unreachable via SSH or RDP. Common causes include Security Group or NACL rules blocking the port, instance in stopped/terminated state, OS-level firewall, wrong key pair or password, or the instance being in a private subnet with no routing to the bastion/VPN.

Indicators

Likely causes

Diagnostic steps

  1. EC2 Console > Instance > Security tab — verify inbound Security Group rule allows port 22/3389 from your IP or 0.0.0.0/0 for testing
  2. Check Network ACLs on the subnet: VPC > Subnets > select subnet > Network ACL tab — verify inbound and outbound rules allow the port and ephemeral return traffic (1024-65535)
  3. Verify route table: does the subnet have a route to an IGW (public) or is it private requiring VPN/bastion access?
  4. Use EC2 Serial Console or EC2 Instance Connect (browser-based) to get OS-level access without SSH — diagnose firewall rules and sshd status
  5. Check system log: EC2 Console > Actions > Monitor and troubleshoot > Get system log — verify OS booted cleanly
  6. If CPU credit exhausted (T-series): check CloudWatch CPUCreditBalance metric — burst credit depletion causes severe throttling

Resolution path

Prevention

Tools

awsec2sshrdpsecurity-groupnaclvpccloud