RUN this first as root
curl -s https://gist.githubusercontent.com/shahidcodes/218a5c1331b87b45235a52a2b2382c46/raw/ea6b22452282aa5a1fd70c9fa7df393e89107e03/create-ubuntu-user.sh | sudo bash
Login using ubuntu
user
Then run this as ubuntu
user
curl -s https://gist.githubusercontent.com/shahidcodes/218a5c1331b87b45235a52a2b2382c46/raw/ea6b22452282aa5a1fd70c9fa7df393e89107e03/disable-root-pwd-login.sh | bash