【发布时间】:2019-01-11 04:45:54
【问题描述】:
我正在尝试从 Windows 计算机连接到我的谷歌云虚拟机。
我的普通机器在 linux 下,这台机器一切正常,但现在我无法使用它,所以我尝试从这个 windows 的机器连接。
我安装了 gcloud sdk,当我尝试打开 ssh 隧道以连接到 Web UI 时:
gcloud compute ssh my-spark-master --project=my-project --zone=us-east1-b -- -D localhost:10000 -N
我遇到网络错误:连接超时
用户是在我的虚拟机上创建的(我在主目录中)。我的本地机器上有一个 google_compute_engine.ppk,我的项目上打开了 22 个 TCP 端口。我已经在我的 Windows 防火墙中授权了“C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\sdk\putty.exe”(但是做得好吗?)
gcloud compute firewall-rules list
NAME NETWORK DIRECTION PRIORITY ALLOW DENY
default-allow-icmp default INGRESS 65534 icmp
default-allow-internal default INGRESS 65534 tcp:0-65535,udp:0-65535,icmp
default-allow-rdp default INGRESS 65534 tcp:3389
default-allow-ssh default INGRESS 65534 tcp:22
To show all fields of the firewall, please show in JSON format: --format=json
To show all fields in table format, please see the examples in --help.
有什么提示吗?
【问题讨论】:
标签: google-cloud-platform google-compute-engine ssh-tunnel