大网数据广告活动
服务器运维问答

Cannot Connect to the AWS Lightsail Instance

· 52CE 我爱测

My Amazon Lightsail instance was working fine until 1 hour before. I opened some ports in the network config in the browser dashboard and since then I cannot connect to the server. All the hosted websites are down and simply the …

问题原文

原帖链接 · picmate 涅 · CC BY-SA 3.0

My Amazon Lightsail instance was working fine until 1 hour before. I opened some ports in the network config in the browser dashboard and since then I cannot connect to the server. All the hosted websites are down and simply the instance is not working. I rebooted the server, but no luck. I am in a terrible situation right now. I don't know whether the instance has crashed altogether. Seems there's nothing that I could do at this point. Is this common? There's no way to contact the amazon support on this.

Update: After Tim's comment the firewall setting:

This didn't work until 465, 587 and 9000 were removed. After that, everything was ok. The 3 ports mentioned above being the only three ports that were open earlier, ssh port, 22, was missing from the list. Therefore, I wasn't able to establish a connection.

已采纳解答

原帖链接 · Tim · CC BY-SA 3.0

General this kind of problem is caused by a firewall. In full AWS this tends to be security groups or NACLs, but LightSail appears to be a simpler firewall interface.

Try to close any ports you don't need open. For example, if you don't use SSH, close port 22.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。