从快照创建的 Google Cloud 虚拟机实例不允许 ssh [英] Google Cloud virtual machine instance created from snapshot not allowing ssh

查看:28
本文介绍了从快照创建的 Google Cloud 虚拟机实例不允许 ssh的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从生产服务器的快照创建了一个虚拟机实例.SSH 密钥已设置.但我无法从浏览器的腻子和谷歌云 ssh 选项进入实例.

I have created a virtual machine instance from snapshot taken the production server. SSH key is set. But I am unable to ssh into instance both from the putty and google cloud ssh option from browser.

我四处搜索,发现没有设置
的问题新版本实例的默认 IP 网关.我已经设置了 IP 网关并重新启动了实例,但实例仍然显示相同的错误.我还检查了防火墙规则和允许实例的端口 22 流量.除了使用快照新创建的实例外,同一区域中的所有其他实例都在 SSH 上工作.

I have search around and find out that the issue new release which does not set the
default IP gateway for the instance. I have set the IP gateway and restart the instance but instance still showing the same error . I have also check the Firewall rule and port 22 traffic allowed to the instance. All other instance in same zone are working on SSH other than instance newly created using snapshot.

查看串口日志后ifup: failed to come up lo

错误图片

推荐答案

这里的问题似乎是您的新实例的网络接口没有出现.您可以尝试以下两个步骤之一:

It seems the issue here is that the network interface of your new instance is not coming up. You can try one of two steps:

1) 尝试通过 串行控制台.这不通过端口 22 连接或使用 SSH.但是,如果网卡根本就没有出来,这也可能会失败.

1) try connecting through the serial console. This does not connect through port 22 or use SSH. However, if the network card is not coming up at all, this may also fail.

2) 将 启动脚本 添加到将运行您的命令的实例需要配置网卡

2) Add a startup script to the instance which will run the commands you need to configure the network card

这篇关于从快照创建的 Google Cloud 虚拟机实例不允许 ssh的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆