EC2连接超时

问题描述 投票:0回答:1

我有带有公共子网的ec2实例,并且与vpc关联。并且igw附加到了vpc

我确实启用了自动分配IP

此外,我还有具有以下入站规则的安全组

enter image description here

路由表如下

enter image description here

OpenSSH_8.1p1, OpenSSL 1.1.1d  10 Sep 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "ec2-XX-XXX.ap-southeast-2.compute.amazonaws.com" port 22
debug2: ssh_connect_direct
debug1: Connecting to ec2-XX-XXX.ap-southeast-2.compute.amazonaws.com [XX.XX] port 22.
debug1: connect to address ec2-XX-XXX port 22: Connection timed out
ssh: connect to host ec2-XX-XXX.ap-southeast-2.compute.amazonaws.com port 22: Connection timed out
amazon-web-services amazon-ec2
1个回答
0
投票
您可以检查以下内容

  • 您已经提到您已将IG附加到vpc,请确认已对将默认流量路由到IG的路由表进行了更改,以使您的实例可通过IG到达。
  • 检查是否可能拒绝ssh的iptable规则
热门问题
推荐问题
最新问题