How to connect to your EC2 instance

To connect to your EC2 instance you can do it through

SSH (Secure Shell) through your terminal

  • You need download the .pem file when you create your EC2 instance
  • You need to allow inbound traffic through port 22 from your IP address
  • ssh -i path/to/your/pem ec2-user@ec2-public-ip


EC2 Instance Connect

You can access your EC2 through EC2 Instance Connect in AWS Management Console under EC2 Instances tables