GCP - Root password of VM instance created by Google Cloud Platform

By xngo on April 26, 2020

By default, Google Cloud Platform creates virtual machine instance without a root password. You have to set it yourself.

Run sudo passwd command and follow the instructions.

If you do everything correctly, it should do something like this:

$ sudo passwd
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.