By using AWS re:Post, you agree to the Terms of Use

Unable to ssh into aws ec2 instances.

0

Hi , I am unable to ssh into any of the AWS-EC2 instances that i create. Connection server timed out prompt everytime.

1 Answers
2

Is the EC2 machine in a public subnet or a private subnet?

If it is in a public subnet, can you make sure the security group for the machine allows inbound traffic on the ssh port.

If it is in a private subnet, you cannot connect from the internet. You will need a bastion host on a public subnet or you will need connectivity to the VPC from your on-prem network using either IPSec VPN or DirectConnect

profile picture
EXPERT
answered 14 days ago
profile picture
MODERATOR
reviewed 11 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions