Jump to Navigation

114 - ssh : root login

 If you want to permit someone to login directly to the root login account via ssh, you can define three methods
of control in the /etc/ssh/sshd_config file:

        PermitRootLogin         no

This will disable all root logins. To enable root logins with any authentication method, use the following setting:
        PermitRootLogin         yes

You can limit the authentication methods by using the following setting:
        PermitRootLogin         nopwd

This allows root logins only when an authentication method other than password is used.

After modified the configuration file, You need to restart ssh.

# service sshd restart


Main menu 2

Story | by Dr. Radut