Google cloud platform google计算引擎ssh非常慢,然后超时
我正在尝试登录到google计算引擎VM实例Google cloud platform google计算引擎ssh非常慢,然后超时,google-cloud-platform,Google Cloud Platform,我正在尝试登录到google计算引擎VM实例 $ gcloud compute ssh gke-kubia-default-pool-5af12345-abcd --zone=us-east1-b 这花了很长时间,然后给出了以下错误 ssh: connect to host b.b.c.d port 22: Operation timed out ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
$ gcloud compute ssh gke-kubia-default-pool-5af12345-abcd --zone=us-east1-b
这花了很长时间,然后给出了以下错误
ssh: connect to host b.b.c.d port 22: Operation timed out
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
我试着登录我的mac终端以及web界面中的浏览器终端。
任何想法,如何解决此错误。检查您是否有允许在端口22上进行入口连接的防火墙规则。 默认规则如下所示 默认允许ssh入口应用于所有IP范围:0.0.0.0/0 tcp:22允许1000默认值 如果你看不到它在下面
- 专有网络
- 防火墙规则
$gcloud compute firewall rules create mysh--allow tcp:22--source ranges 0.0.0/0
我还将尝试通过运行以下命令来测试连接:
$ telnet IP 22
编辑=>其他信息:
- 有关SSH疑难解答的一些提示,您可以查看
- 这可能会有帮助 嗯