2016-11-14 80 views
2

我被绑定到了gcloud实例。我突然有以下错误登出:无法在Google云实例上登录ssh

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 

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

+0

[Google Compute Engine:如何快照虚拟机磁盘]的可能副本(http://stackoverflow.com/questions/27345534/google-compute-engine-how-to-snapshot-a-vms-disk) – kenorb

回答

1

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

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

+0

无法从控制台ssh。但尝试拍摄磁盘快照。根据快照,磁盘是70%免费的。关于网络,我能够ping服务器。 –

+0

你应该可以从控制台SSH。你有什么错误?也许你的一个防火墙阻止了传出的SSH连接。 错误行:“debug1:key_load_public:没有这样的文件或目录”表明在服务器上找不到公钥,所以你的私钥不能被验证。 –