无法通过 RDP 连接 google 实例

cant connect google instance via RDP

我尝试在 IPv4 设置(控制面板 -> 网络和 Internet -> 网络和共享中心 -> 以太网 - 属性 -> IPv4 设置)中将 "Use the following IP address" 更改为一个指定的IP。我尝试从 console.cloud.google.com 重新启动,但仍然没有成功。

根据 Google Compute Engine docs on RDP:

If you run into issues logging in to your instance using RDP, you might not have a firewall rule that allows RDP traffic on port 3389 (tcp:3389). For instructions on how to add a firewall rule, see Adding a firewall.

您需要停止虚拟机实例,然后您可以使用 instances().start 方法以其原始配置重新启动实例。此方法启动当前处于 TERMINATED 状态的已关闭电源的虚拟机实例。