大网数据广告活动
服务器运维问答

Unable to SSH onto GCE VM after reboot

· 52CE 我爱测

I have a Ubuntu 16.04 LTS VM which I rebooted to apply updates to, but have got the following when trying to connect to SSH through the browser console since: Connection failed We are unable to connect to the VM on port 22. The s…

问题原文

原帖链接 · user3333099 · CC BY-SA 3.0

I have a Ubuntu 16.04 LTS VM which I rebooted to apply updates to, but have got the following when trying to connect to SSH through the browser console since:

Connection failed We are unable to connect to the VM on port 22.

The serial output suggests it's started without issue and it's pingable. A reset made no difference.

社区高分解答

原帖链接 · D Saini · CC BY-SA 3.0

Please find below some general recommendation to troubleshoot this issue.

  • Make sure the VM boot disk is not full and has enough memory space after system updates. You can opt to resize VM disk and detailed steps are here.
  • Make sure from VM serial console output that the instance has fully booted up.
  • Once the instance is booted confirm if ssh daemon is running. Serial console output will have information about ssh daemon. If ssh service is not running you can use interactive serial console to start the service.
  • Make sure you have firewall rule configured in GCE network to allow ssh port.
  • Make sure firewall on the instance(e.g. iptables) is allowing the ssh port. You can use interactive serial console to disable firewall on the VM, if required.
  • You can try ssh from cloud console terminal. You can find more details here. Moreover you can try ssh in verbose or debugging mode: #ssh -v username@host_ipaddress

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-01-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。