Google Cloud: Compute VM Instances

Joseph picture Joseph · Nov 10, 2014 · Viewed 50.9k times · Source

How do I get root access to my Google VM instance, and also how can I log into my VM Instance from my PC with a SSH client such as putty?

I would also like to add that I have tried to do sudo for things that need root access to do those things, such as yum or wget. But it does not allow me to do sudo, it asks me for the root password but I do not know how, or where I would be able to get the root password.

Answer

Sören picture Sören · Nov 16, 2016

You can become root via sudo su. No password is required.