google compute engine VM instance : my root password?
By default there is no root password on GCE instances. You have several options:
- As all users are added to sudoers, you can run the command as root with:
sudo invoke-rc.d procps start
- You can log in as root with
sudo -i
- You can set a root password by running
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