How to set root password for ubuntu servers

This article helps you to set root password for your ubuntu servers/instances. If you are not able to login with password and/or using pem/ppk file to login and wants to change authentication menthod to password, this article is useful to you. This article can help you configure this on AWS EC2, Google Cloud instance and many more such providers