Search Suggest

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

Đăng nhận xét