LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux ssh allow (https://www.linuxquestions.org/questions/linux-newbie-8/linux-ssh-allow-722870/)

PMP 05-01-2009 01:27 AM

Linux ssh allow
 
I want something like the root user is unable to the system, rather one should login as a normal user and then su - to become root. how can i do that.

billymayday 05-01-2009 01:31 AM

Put
Code:

PermitRootLogin no
in sshd_config

andresc889 05-01-2009 11:30 AM

To be more specific, sshd_config is normally located at /etc/ssh/sshd_config (do not confuse with ssh_config).

You can further specify which users you want to allow through ssh. Just add a line like this in sshd_config:

Code:

AllowUsers user1 user2


All times are GMT -5. The time now is 09:57 AM.