Accessing your EC2 instance using SSH – the requirements
- You have downloaded and use the Access Key and Secret Access Key provided or identified when you created the instance.
- An Internet gateway must be attached to your VPC
- Your VPC route table must have an entry that routes packets to the Internet
- The Subnet that your EC2 instance is in must have a Network ACL has an inbound and an outbound rule that allows SSH
- The EC2 instance you are trying to SSH to must have a security group rule that allows inbound SSH.
- The EC2 instance you are trying to access must have a Public or Elastic IP address associated with it
Fortunately, if you setup your VPC and EC2 with defaults much of this is done for you.
More from LonzoDB on AWS