简体   繁体   English

无法 ssh 到 Google Cloud VM 实例

[英]Cannot ssh to Google Cloud VM Instance

I created a google compute engine VM instance from a snapshot but I could not SSH into the instance.我从快照创建了一个谷歌计算引擎 VM 实例,但我无法将 SSH 放入该实例。 Got a message below saying收到下面的消息说

We are unable to connect to the VM on port 22我们无法连接到端口 22 上的 VM

Upon looking at the serial console logs, it seems stuck at login for localhost:查看串行控制台日志后,似乎卡在了 localhost 的登录状态:

Debian GNU/Linux 8 localhost ttyS0

localhost login: 

As it was confirmed by @Stanley at the comment section, this issue was be an issue related to snapshot corruption.正如@Stanley在评论部分所证实的那样,这个问题是与快照损坏有关的问题。

If you have similar issues you can follow the documentation or/and this 3rd party example to troubleshoot your VM instance via serial console.如果您有类似的问题,您可以按照文档或/和此第 3 方示例通过串行控制台对您的 VM 实例进行故障排除。 In addition, some step by step guidance you can find in this answer .此外,您可以在此答案中找到一些分步指导。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM