free tier ec2 instance not launching through putty showing error "Network error : connection timed out"

0

I have created 2 ec2 instance (redhat linux)of free tier t3 micro size in Stockholm region.I have been using these ec2 instances from past few days but today when i tried to connect through PUTTY , it was throwing error "Network error : connection timed out".

AWS data transfer 1GB free transfer is exceeded. ec2 instance used 2GB . could this be the reason or anyother?Putty Error

AWS data tranfer

shyam
asked a month ago244 views
6 Answers
9

hello Shyam,

Please below method once to helpful to connect your instance:

Go to Iam select the role and give ssm full permissions Create role.

Go to ec2 dashboard and select instance and Actiones seclect security AND Modify Role Add you previusloy created role and wait 2/2 instance state after select instance and click on connect through system manager.

EXPERT
answered a month ago
8
Accepted Answer

Possible Reasons and Solutions Instance State:

Check Instance Status: Ensure that both EC2 instances are in the "running" state. Instances that are stopped or terminated cannot be accessed. Action: Go to the EC2 Dashboard in the AWS Management Console, check the state of your instances, and ensure they are running.

Security Group Configuration:

**Inbound Rules: **Make sure the security group associated with your EC2 instances allows inbound SSH (port 22) traffic from your IP address. Action: Go to the "Security Groups" section in the EC2 Dashboard, find the security group attached to your instances, and check the inbound rules. There should be a rule allowing SSH access (port 22) from your IP. If not, add a rule to allow inbound SSH traffic from your IP address or 0.0.0.0/0 (not recommended for production environments due to security risks).

Network ACLs:

Check Network ACLs: Ensure that the Network ACLs (NACLs) associated with the subnet of your EC2 instances allow inbound and outbound traffic on port 22. Action: Go to the VPC Dashboard, check the NACLs for the subnet, and ensure that they allow inbound and outbound traffic for SSH (port 22). Instance-Level Firewall:

Check IPTables: If you have configured a firewall on the instances themselves, ensure that it allows SSH traffic. Action: If you can access the instance through another method, such as an attached console, check the IPTables or firewalld configuration.

Elastic IP:

Public IP: Ensure you are using the correct public IP address or Elastic IP to connect to your instances. Action: Verify the public IP address assigned to your instances and make sure you are using that IP in PuTTY. Network Connectivity:

General Connectivity: Ensure that your internet connection is stable and that you can connect to other resources over the internet.

Action: Test your network connection by trying to access other websites or services to ensure your local network is not causing the issue.

AWS Maintenance or Issues:

Check AWS Health Dashboard: There might be ongoing maintenance or issues with the AWS infrastructure in the Stockholm region. Action: Check the AWS Service Health Dashboard for any reported issues in the Stockholm region.

EXPERT
answered a month ago
EXPERT
reviewed 25 days ago
profile picture
EXPERT
reviewed a month ago
  • Hello Anil , Thanks for answering. both the instances are running. i have set port range & protocal to - ALL

  • Please look at the below i mentioned another procedure connect your instance through IAM SSM-Role

1

Hello.

Even if you use up your free tier, you will not be unable to use SSH.
Is your IP address allowed for SSH in your security group?
Also, is the public IP address of the EC2 you are trying to connect to correct?
Please check the following documents for other troubleshooting methods.
https://repost.aws/knowledge-center/instance-vpc-troubleshoot

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile pictureAWS
EXPERT
reviewed a month ago
1

Another person had the same error today.
There may be a problem with Putty, so try connecting using Teraterm.
https://repost.aws/ja/questions/QUkgAnWmSCQ4q6NV2k93Ma8g/no-supported-authentication-methods-available-server-sent-publickey#ANrlDjdOzeTi2SENGQBP0Fzw

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
0

Enter image description here when i select public ip it is throwing server refused to connect

shyam
answered a month ago
0

Enter image description here Faced similar issue while trying to access from MobaXterm.

shyam
answered a month 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