Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

VM asks for password when accessing via chrome remote desktop

This is my first time using google cloud VM and I got really confused on this... Here are my steps:

1. I can connect using "SSH in browser".

 1.PNG

2. I followed the instructions on https://cloud.google.com/architecture/chrome-desktop-remote-on-compute-engine and successfully connected the instance via remote desktop.

2.PNG

3. Here comes the problem. I tried to go to the root in the remote desktop, but VM asked for a password. I have no idea what this password comes from, and I tried the instance id and my gmail password, not working. (figure shows the remote desktop)

3.PNG

4. Then I set my password in the SSH connection and reboot the machine. However, the new password is still not working in the remote desktop. (figure shows SSH)

4.PNG

Could someone please advise on this issue? 

Solved Solved
0 1 4,037
1 ACCEPTED SOLUTION

Please follow these steps and be sure to have the proper roles to set the root password.

  • Go to IAM & Admin
  • Select IAM
  • Find your user name service account (basically your Google account) and click Edit-member
  • Add another role --> select 'Compute Engine' - 'Compute Admin'
  • Restart your Compute VM
  • Open SSH and run the command 'sudo passwd'
  • Enter a brand new password.

Here is the original answer in Stack Overflow

View solution in original post

1 REPLY 1

Please follow these steps and be sure to have the proper roles to set the root password.

  • Go to IAM & Admin
  • Select IAM
  • Find your user name service account (basically your Google account) and click Edit-member
  • Add another role --> select 'Compute Engine' - 'Compute Admin'
  • Restart your Compute VM
  • Open SSH and run the command 'sudo passwd'
  • Enter a brand new password.

Here is the original answer in Stack Overflow