0

How to disable direct root login in ssh

I need to disable the direct login to the root user. Where to block it.

Linux Root Add a comment
connor
asked Feb 18 2017

Answer

0

To block the direct root login, edit the following line in sshd.conf file located in /etc/ssh/sshd.conf

PermitRootLogin no

So it will block root login directly.

Add a comment
jagannatharumugam
asked Feb 19 2017
edited Oct 05 2018
Post your Answer