无法连接到 Amazon EC2 服务器-远程桌面连接失败

无法连接到 Amazon EC2 服务器-远程桌面连接失败

我尝试通过 Windows 7 PC 上的 Amazon EC2 连接到 Windows Server 2008 R2。但是每次我尝试使用远程桌面连接启动实例时都会出现以下错误:

Remote Desktop can't connect to the remote computer for one of these reasons:
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

当我创建实例时,所有设置都保留为默认设置。我认为这可能与网络阻止连接有关,但这台电脑上启用了远程访问,防火墙允许远程访问(尽管这可能是传入的,而不是传出的,我犯了一个错误)。

关于如何修复此问题有什么想法吗?

答案1

Goto Security Groups -> Inbound and choose RDP from the list.

In the Source field, add your IP or allow connections from all IPs with 0.0.0.0

Save the rule and try connecting your EC2 instance again.

您执行的任何出站设置都不会影响您连接到该实例。

答案2

检查您的入站规则安全组如果有允许 RDP 连接的规则,则与 EC2 实例关联,如果没有,则添加规则并重试。

答案3

检查您的公共 IP 地址是否未更改。您可能在实例上使用动态 IP 设置

相关内容