LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I disallow ssh login by root? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-disallow-ssh-login-by-root-306307/)

Seventh 03-26-2005 10:19 AM

How do I disallow ssh login by root?
 
Hi all,

I have a Redhat 9 server, and I'm currently able to ssh to it using root credentials.

I edited sshd.conf and changed the following:

# Authentication:

#LoginGraceTime 120
PermitRootLogin no
#StrictModes yes

And restarted the service, but I'm still able to ssh in as root. Is there something else I need to do?

Thanks!

Seventh 03-26-2005 10:30 AM

Got it. :) Had to change the "Protocol 2,1" line to "Protocol 2" only.


All times are GMT -5. The time now is 04:07 PM.