【问题标题】:root account locked GCP VM instance根帐户锁定的 GCP 虚拟机实例
【发布时间】:2019-06-17 20:09:52
【问题描述】:

我已被锁定在 GCP 虚拟机实例之外。当我连接 ssh 时,我得到: ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].

当我连接串行控制台时:

You are in emerg
Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.

我已经将磁盘挂载到另一个 VM 实例。 您知道我应该更改什么以使其再次可访问吗?

提前致谢。

【问题讨论】:

  • 我应该创建一个inittab并在里面写sulogin吗?
  • 问题,为什么你的root账户可以访问?
  • @Stap7 你是如何连接到实例的?为什么要root?

标签: google-cloud-platform virtual-machine instance


【解决方案1】:

我建议您使用different user 登录或使用different instance 中的磁盘

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-12-18
    • 2018-09-24
    • 1970-01-01
    • 2020-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多