AWS Instance Error

0

Hi every time I try to connect to my AWS instance in diffrent ways like with PuTTY or on the AWS web, I can't connect to my instance. And this is what it always say on the AWS web:

Failed to connect to your instance
Error establishing SSH connection to your instance. Try again later.

Can anyone please help me? This solving problem is very important to me.

Evoker
asked 10 months ago171 views
2 Answers
0

Let's start with the networking area.

  1. Does the inbound rule for the security group allow SSH?
  2. Are the required communications allowed by the network ACLs for the subnet on which the EC2 is running?
  3. Is a route to Internet Gateway configured in the route table of the subnet on which EC2 is running?

We also recommend that you review the following document, which describes general troubleshooting methods when you cannot connect to EC2.
https://repost.aws/knowledge-center/ec2-linux-ssh-troubleshooting
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html

profile picture
EXPERT
answered 10 months ago
  • Everything is ok for 1, 2, and 3 and those website didn't help very much...

0

we may have a long list for troubleshooting (in addition to Riku)

  • Check your security group rules to make sure that inbound traffic for SSH (port 22) is allowed from your IP address.
  • If your instance is in a VPC, ensure that the associated Network Access Control Lists (NACLs) allow inbound and outbound traffic for SSH (port 22).
  • Make sure your VPC has the correct route to the internet. This typically means having a route to an Internet Gateway (IGW).
  • Make sure you're using the correct SSH key pair to connect to your instance.
  • You can check whether SSH service is running or not
  • If you're behind a corporate firewall, it might be blocking SSH connection
profile picture
EXPERT
answered 10 months ago
  • Every there are all good, but it's still not running...Actually, NACL rule number * is denied.

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