【发布时间】: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