简体   繁体   中英

how to handle it easily when failed to ssh gce due to fstab invalid configuration

On GCE, I added a disk to my VM and changed the fstab file to mount disk automatically. But I made a mistake in that file so I couldn't ssh this vm any more.
In my opinion, I need to edit that file correctly then I can ssh it again. The problem is I couldn't login first to edit it.
Are there some ways to fix this issue?

Using the interactive serial console to revert the changes you might have done.
Refer to this post .

  • create a root password for the serial console
  • login into the instance and revert the changes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM