Network error: Connection timed out or Error connecting to [instance] in AWS.

0 votes

Hi Guys,

I launched an EC2 instance in AWS. But I am not able to connect it from my local system. It shows me the below error. 

Network error: Connection timed out or Error connecting to [instance]

How can I solve this error?

Apr 28 in AWS by akhtar
• 11,270 points
51 views

1 answer to this question.

0 votes

Hi@akhtar,

Check your security group rules. You need a security group rule that allows inbound traffic from your public IPv4 address on the proper port.

To avoid this you can follow the below given steps.

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Instances, and then select your instance.

  3. In the Description tab at the bottom of the console page, next to Security groups, select view inbound rules to display the list of rules that are in effect for the selected instance.

  4. When you select view inbound rules, a window will appear that displays the port to which traffic is allowed. Verify that there is a rule that allows traffic from your computer to port 22 (SSH).

Hope this will help You.

answered Apr 28 by MD
• 24,500 points

Related Questions In AWS

0 votes
1 answer

Getting connection timed while connecting to my EC2 instance

Due to some technical difficulties on the ...READ MORE

answered Dec 14, 2018 in AWS by Aniket
620 views
0 votes
1 answer

if instance is a part of some AutoScaling Group in AWS or not ?

You can run this command below on ...READ MORE

answered Jun 1, 2018 in AWS by Cloud gunner
• 4,630 points
132 views
0 votes
1 answer

How to auto-scale MYSQL database in AWS EC2 instance?

You could always use the Amazon RDS ...READ MORE

answered Aug 24, 2018 in AWS by Archana
• 4,150 points
768 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to find all instance Ids In AWS from command line?

Hi@akhtar, You can find one keyword --query in ...READ MORE

answered 4 days ago in AWS by MD
• 24,500 points
25 views