I'm using google cloud platform compute engine.
I created a VM instance (OS : Ubuntu 16.04)
I want to change some system config. However system requires me to enter password.
I haven't got password. I don't know my password.
What is my password?
By default there is no root password on GCE instances. You have several options:
sudo invoke-rc.d procps start
sudo -i
sudo passwd
GCE don't set any clear-text password for any user, it only sets ssh keys
You can ssh into instance directly from web console
You can use all root privileges by using sudo [COMMAND --ARG1..]
To set root password ssh into instance
Type : sudo passwd root
(for linux machines)
It will ask for new password but whatever password you are typing won't show, It's hidden, just press enter after done typing
Also if you are trying to ssh into instance as root, you will need to edit /etc/ssh/sshd.config
and change Permit root login and Password Authentication to yes
Hope it helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With