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,260 points
3,594 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,460 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
2,121 views
0 votes
1 answer

ELOGIN error while connecting to SQL Server RDS in AWS Elastic Beanstalk

Using SQL Server Management Studio (SSMS) with ...READ MORE

answered Feb 8, 2022 in AWS by anonymous
488 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 2, 2018 in AWS by Cloud gunner
• 4,670 points
1,789 views
0 votes
1 answer
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 8, 2020 in AWS by Shrikant
• 180 points
10,445 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP