January 31, 2023


The complete guide to the beginners as well as to the experienced Web Developers

How to set EC2 Ubuntu default password

switch to root with:

and set the password through the below command

After that, we will edit the configuration to modify the ssh login system for password. So, let’s open the configuration file with a nano editor. This will let us edit the default configuration.

change PasswordAuthentication noto PasswordAuthentication yes

Next, we need to restart the sshd by running this command:

it’s done!

Now you can Run this command, and then give the password.

ssh ubuntu@x.x.x.x