Help me to write a script for Ubuntu (DigitalOcean).
can anyone help me how to create a shell or python script by which i can change root password when i create a new droplet. actually problem is that when i create a new droplet it email me ip, username and password to my email. its good. but i want to create a script by which i can change the password of root without any prompt from a php website. ( i am using ssh script to execute a command from a php and i will run this bash script from this php website). Script should be for Ubuntu.
when we when we want to connect our new droplet with serverpiolat.io using our ip and ssh password then it install all the packages. as it is required for new created droplet to change password first time.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.