port 22: Connection timed out (Ubuntu or Debiab)

0

I am trying to startup a debian or ubuntu server and I keep on getting this error I made sure port 22 is open to everyone Ports opened Please I need help

posta 10 mesi fa346 visualizzazioni
3 Risposte
2

Hi,

Your security group seems quite open so that is not the problem for connectivity.

Other things that I'd check to resolve the issue are:

Public subnet/internet gateway:

Is your instance is deployed in public subnet, make sure that subnet has internet gateway attached to it's route table, otherwise resources inside that subnet can't reach to internet and hence that subnet is not public. You would need a route that sends all traffic destined outside the VPC to the internet gateway for the VPC.

Make sure there is an internet gateway attached to your VPC. Otherwise, choose Create internet gateway. On the Route table tab, verify that there is a route with 0.0.0.0/0 as the destination and the internet gateway for your VPC as the target, if you don't see this then add this route.

Network Access Control List(NACL):

Lastly you'd need to check the network access control list (ACL) for the subnet. The network ACLs must allow inbound and outbound traffic from your local IP address on the proper port. The default network ACL allows all inbound and outbound traffic.

Addition Reference:

re:Post Knowledge Center Article

Hope you find this information helpful.

Comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
ESPERTO
con risposta 10 mesi fa
1

Hello.
Have you checked your network ACLs?
Also, have you checked that there is a route to the Internet Gateway in the route table of the subnet where you started the EC2?
Please refer to the following documents for general troubleshooting instructions.
https://repost.aws/knowledge-center/ec2-linux-resolve-ssh-connection-errors

profile picture
ESPERTO
con risposta 10 mesi fa
0
Risposta accettata

So when I was creating the instance i choose a private subnet.

Next time I need to choose a public subnet and automatically assign a public IP

con risposta 10 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande