Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-08-2007, 05:54 PM   #1
Registered: Dec 2005
Distribution: Fedora Core 5, Sun Solaris 8
Posts: 122

Rep: Reputation: 15
Unhappy How to prevent root user from logging into ssh

yo you there?Dear All
I just wanted to restrict logging for the root user through shh.I found a solution which is simply saying to add a line to /etc/ssh/sshd_config . The line is

permitRootLogin no

But it is not working . Would u please suggest me what can i do to stop root's ssh access.

Thanking You
Network Engineer
Old 10-08-2007, 06:10 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Did you restart ssh afterward?
Old 10-08-2007, 06:10 PM   #3
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
That should do it. Did you stop then start sshd after making the change?



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
FTP Server: Prevent user from getting out of their root directory Swakoo Linux - General 4 03-02-2007 01:42 AM
Prevent user account from logging in but allow su to account DejaCpp Linux - General 4 07-26-2006 11:44 AM
Prevent Root access with SSH rshooper Linux - Security 4 11-18-2004 01:05 PM
Prevent a user from logging into X? sorrodos Linux - Security 6 06-26-2004 03:30 PM
Logging On As Root User BACTRATE Mandriva 6 02-16-2004 10:48 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration