How to enable ssh root password login on centos or ubuntu

From your shell window open file path like below with your favorite text editor :

vim /etc/ssh/sshd_config

change the following parameter no to yes

PermitRootLogin yes
PasswordAuthentication yes

If you don’t want to enable root login then set permitrootlogin to no, create a user set a password & give the user permission as you want. The user can also login ssh with password you will give.

Now restart the ssh daemon following this command :

systemctl restart sshd

Now you can ssh password login remotely to your server.

Thank you for reading this article.

Was this helpful?

1 / 0

Leave a Reply 3

Your email address will not be published. Required fields are marked *


eAcrwELUqFYk

eAcrwELUqFYk

Done well, thank you.

Creative

Creative

Pass, thanks

Moldova

Moldova

deposit