You can always use the SSH link on the cloud page to connect to your VM, however that user name is what’s your Google account name. Below I’m showing how to use Putty to connect to the same instance with a different user name.

1. Use PuTTY Key Generator to create your own private/public keys, make sure to provide your user name in “Key comment” field

2. Copy the public key to your VM’s public key section

3. Use Putty to connect to this VM by using the corresponding private key.

3. When prompted, type in a user name that you specified in step 1 above

4. all good to go now!


After your enabled the public key(step 2 above), Google will create this user on VM and gives it sudo access.

Refer to below on how to access a postgresql on GCP.


Using Putty to connect to Google Cloud VM (Compute Engine)

Leave a Reply

Your email address will not be published.

17 − = 10

This site uses Akismet to reduce spam. Learn how your comment data is processed.