How to change the default Google Cloud username?

Viewed 2737

I am new to Google Cloud Platform (GCP), I tried to create a new VM, but the default username is annoying. Say, my gmail is example.email@gmail.com, the username will be example_email.

How can I change it to something like: smith, instead of example_email?

Thank you very much!

1 Answers

You cannot change the default username as it is based upon the Google Account identity.

You can use a different username by creating your own private/public keys and specifying the username along with the SSH public key (ssh-rsa) when you create the instance or by modifying the SSH settings on an existing instance.

Adding or removing instance-level public SSH keys

Then you can log into the instance using SSH and your desired username (smith).

Related