switch to root with:
1 2 3 4 5 |
sudo su |
and set the password through the below command
1 2 3 4 5 |
passwd ubuntu |
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.
1 2 3 4 5 |
nano /etc/ssh/sshd_config |
change PasswordAuthentication noto PasswordAuthentication yes
Next, we need to restart the sshd by running this command:
1 2 3 4 5 |
service sshd restart |
it’s done!
Now you can Run this command, and then give the password.
ssh ubuntu@x.x.x.x
More Stories
CPU & Memory usage in PHP
Install PHP mcrypt extension on Ubuntu
PHP Composer memory limit issues