How to allow ssh root login in ubuntu 16.X

By default ssh root login is disabled in Ubuntu . To allow root login from ssh , you need to add PermitRootLogin "Yes" in ssh config file.

Edit ssh config file /etc/ssh/sshd_config and add below parameter
$  vim.tiny /etc/ssh/sshd_config
#PermitRootLogin prohibit-password
PermitRootLogin yes

Restart ssh service
$ sudo systemctl restart sshd

Now login through root remotely.......!!
$ ssh root@192.168.0.70
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

1 comments: