无法在Google云端实例上进行ssh

时间:2016-11-14 13:32:55

标签: ssh google-cloud-platform gcloud

我被我的gcloud实例砸了。我突然注销了以下错误:

Timeout, server 104.198.148.233 not responding.
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255]. See https://cloud.google.com/compute/docs/troubleshooting#ssherrors for troubleshooting hints.

再试一次,我得到了以下内容:

OpenSSH_7.2p2, LibreSSL 2.4.1
debug1: Reading configuration data /Users/aapa/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to 104.198.148.233 [104.198.148.233] port 22.
debug1: Connection established.
debug1: identity file /Users/aapa/.ssh/google_compute_engine type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/aapa/.ssh/google_compute_engine-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2

如何找到问题?我应该采取什么措施。

1 个答案:

答案 0 :(得分:1)

错误是“key_load_public:没有这样的文件或目录”。超时错误建议您阅读问题排查指南:https://cloud.google.com/compute/docs/troubleshooting#ssherrors

指南说错误的可能原因可能是完整磁盘或网络问题。你的磁盘满了吗?您可以通过SSH控制台访问实例进行检查。