how to reset password for ubuntu GCP instance code example
Example: how to reset password for ubuntu GCP instance
vfa_gianglt@instance-1:~$ sudo -i
root@instance-1:~# sudo bash
root@instance-1:~# sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@instance-1:~# cd /root
root@instance-1:~#