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

質問済み 10ヶ月前346ビュー
3回答
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
エキスパート
回答済み 10ヶ月前
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
エキスパート
回答済み 10ヶ月前
0
承認された回答

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

回答済み 10ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ