Avatar of ashsysad
Flag for United States of America

asked on 

Blocked direct root SSH access in Linux


I have a requirement to block the direct root SSH access from all the hosts EXCEPT one server. Is it possible ?  I know that we can block the direct root access by setting the directive "PermitRootLogin" to "no" in /etc/ssh/sshd_config. But how can i create exceptional in it. Please let me know.

Thanks !
Linux SecurityLinuxLinux Networking

Avatar of undefined
Last Comment

8/22/2022 - Mon