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, 2020 in AWS by akhtar
• 38,170 points
1,405 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, 2020 by MD
• 95,180 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
1,079 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,650 points
335 views
+1 vote
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
1,212 views
0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,120 points
1,027 views
0 votes
1 answer
0 votes
1 answer
0 votes
3 answers

How to check instance state and status via Lambda function in AWS?

import boto3 from pprint import pprint def lambda_handler(event, context):          # ...READ MORE

answered Sep 7, 2020 in AWS by Shrikant
• 180 points
2,753 views