我为此不知所措,请帮忙。
我正在默认的公共VPC中创建EC2实例,但是我无法通过ssh或http连接到运行该计算机的实例或Web服务器。我检查了以下内容
尽管所有这些都无法连接到EC2实例,但AMI是Amazon Linux 2 AMI
When I try to ssh, i get a connection timeout error after a while, initially, i thought it was my office network but I am also getting the same from my home network with no firewalls in place
To allow an SSH connection, you will need:
0.0.0.0/0
to an Internet Gateway)根据您的描述,我想说问题可能出在NACL上。SSH会话的返回流量将返回到启动服务器上的源端口,而不是端口22。通常,只有在有特定原因(例如创建DMZ)时,才更改NACL。我建议您将NACL规则重置为“允许双向所有流量”。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句