A bit of stupidity. On my Google Compute Engine (GCE) instance, I went in and changed the sshd_config to listen another port (something I do routinely)...but I didn't test before logging off. And there's a typo. So now I can't log in via ssh because the config is screwed up and sshd won't even start. (I can launch sshd with a different config file, as a non-root user, but it gives me a "Could not load host key", as expected, probably doesn't have the permissions.)
Use the GCE serial console you say? Ah... but none of the users I can login with are sudoers. (I have two others with sudo'er, but the passwords aren't working, don't know why. I wrote them down wrong?)
So I have user (non-root) access with password, and have keys for root (sudo'er) users, I just don't have a way to log in with those thru the serial console? (Is there a way to have the console recognize my keys instead of a password?)
It's good for security that I can't just fix this in 5 minutes with my limited knownledge, but can I leverage what I have to get back in with root? I have the access to the project in the Google Compute Engine Console and the users, etc., I just have cut myself off from command line on this instance.
If it were a physical machine, I'd stick in bootable usb distro and simply edit config file and restart.
Any suggestions?
Thanks.