Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-26-2005, 10:19 AM   #1
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
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?


Last edited by Seventh; 03-26-2005 at 10:23 AM.
Old 03-26-2005, 10:30 AM   #2
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
Got it. Had to change the "Protocol 2,1" line to "Protocol 2" only.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Root login via ssh UltraSoul Solaris / OpenSolaris 3 02-09-2007 02:18 AM
disallow ssh root login only from internet wensveen Linux - Security 10 03-21-2005 07:34 AM
ssh only allow root login chongluo Linux - Newbie 1 10-28-2004 08:51 AM
telnet: DISallow root access MacDschie Linux - Software 2 05-14-2003 12:43 PM
Only root can login via ssh cmisip Linux - Security 5 04-26-2003 05:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration