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

preguntada hace 10 meses346 visualizaciones
3 Respuestas
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
EXPERTO
respondido hace 10 meses
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
EXPERTO
respondido hace 10 meses
0
Respuesta aceptada

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

respondido hace 10 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas