SSH to GCP instance

$ gcloud init

$ gcloud config list
[core]
account = xxx@xxx.com
disable_usage_reporting = True
project = xxx-238307

Your active configuration is: [default]

$ gcloud compute instances list
NAME       ZONE           MACHINE_TYPE  PREEMPTIBLE  INTERNAL_IP  EXTERNAL_IP    STATUS
wordpress  us-central1-a  f1-micro                   10.xxx.0.2   35.xxx.102.24  RUNNING

$ gcloud compute ssh wordpress
$ mike@wordpress:~$ sudo su mgoldchild

from ssh on web to update password of root user

mgoldchild@wordpress:~$ sudo passwd root
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
mgoldchild@wordpress:~$ sudo passwd
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully