小编Yan*_*rin的帖子

GCE - 我们无法在端口 22 上连接到 VM

当我尝试通过 SSH 连接到 Google Compute Engine 上的实例时,出现以下错误。

Connection Failed. We are unable to connect to the VM on port 22.
Run Code Online (Sandbox Code Playgroud)

我为获得该错误所做的步骤

  • 使用 Ubuntu 模板创建了一个新实例。
  • 通过 SSH 连接并安装了我需要的所有应用程序。
  • 删除实例,但删除实例时不删除启动盘。
  • 使用已删除实例的启动盘创建新的自定义映像。
  • 使用自定义映像启动了一个新实例。
  • 从 GCE 控制台单击 SSH 链接。

这是实例的串行控制台输出。

[    0.338119] Loading compiled-in X.509 certificates
[    0.339445] Loaded X.509 cert 'Magrathea: Glacier signing key: e09b1e7e9841e9cfef256b70ab210562dab1ef68'
[    0.341236] registered taskstats version 1
[    0.342183] Key type trusted registered
[    0.342872] Key type encrypted registered
[    0.343453] AppArmor: AppArmor sha1 policy hashing enabled
[    0.344592] …
Run Code Online (Sandbox Code Playgroud)

google-compute-engine google-cloud-platform

8
推荐指数
2
解决办法
7988
查看次数