How to login into Google Cloud serial console? (Debian 10 Buster image)

436 views Asked by At

I've succesfully broke my SSH config by performing some updates and the service fails to launch. I've managed to turn on the serial console for my project and VM and tried to follow this tutorial on how to access it interactively: https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-using-serial-console#connectserialconsole . In order to be able to log-in, I am using the following start up script

#!/bin/bash
adduser local
echo local:localpass | chpasswd
usermod -aG google-sudoers local

However when I go into serial console - Serial port 1 I am greeted with a bunch of logs and when I try to enter the user local as username I always get Login incorrect message displayed. My suspision is that the login script does not even get executed as I've tried to issued other stuff like disabling and stopping services with no effect. Anyone has experience with something similar?

0

There are 0 answers