Windows 实例的远程桌面无法正常工作 -AWS EC2 免费套餐

Remote desktop to Windows instance not working -AWS EC2 Free Tier

我是 AWS 新手,刚开始设置 EC2 实例。 我已经设置了一个带有 VPC 和安全组的 Windows 实例。

但是当我尝试通过 RDP 连接该实例时,出现错误:

由于以下原因之一,远程桌面无法连接到远程计算机:

1) Remote access to the server is not enabled

2) The remote computer is turned off

3) The remote computer is not available on the network. Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.

大多数情况下,如果您错过了以下步骤,则无法访问 EC2。

  1. 确保您的子网路由 table 指向 Internet 网关
  2. EC2 实例分配了 public IPv4 地址或弹性 IP。

连接到 Amazon EC2 实例时要检查的常见事项:

  • 确认实例在所需端口上侦听——我看到有人启动了一个Linux实例,然后尝试通过RDP连接到它
  • 确认 安全组 允许从 0.0.0.0/0 或(最好)您的特定 IP 地址(使用 /32 追加到最后)
  • 确认实例 运行 在 Public 子网 中(这意味着路由 Table 配置为使用互联网网关).如果您使用的是默认 VPC,那么这已经为您配置好了。
  • 确认您正在通过当前与实例关联的 Public IP 地址 进行连接