谷歌计算引擎ssh - 255超时

时间:2018-05-18 06:05:12

标签: ssh google-cloud-platform google-compute-engine gcloud

我正在尝试ssh到gcloud计算实例。

这是我在运行时遇到的错误:

gcloud compute ssh username@instance --ssh-flag="-v" --zone=us-east1-b

OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /home/username/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ip-address [ip-address] port 22.
debug1: connect to address  ip-address port 22: Connection timed out
ssh: connect to host  ip-address port 22: Connection timed out
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255]

可能是该实例正在阻止此网络

我尝试从本地telnet到实例。

telnet instance-ip-address 22
Trying instance-ip-address..
telnet: Unable to connect to remote host: Connection timed out

有人可以帮我解决这个问题。

注意:所有ip-address均指实例的实际IP地址。

0 个答案:

没有答案
相关问题