LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-12-2004, 10:10 AM   #1
Soulstealer
Member
 
Registered: Dec 2004
Location: Necropolis
Distribution: FreeBSD
Posts: 47

Rep: Reputation: 15
Question How can I disable root to ssh


Hello
I'm just asking how to stop "sshing" with root, to get more security on my machine
...thank you
 
Old 12-12-2004, 10:14 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Open up your /etc/ssh/sshd_config file in a text editor and look for the "PermitRootLogin" line and set it to no. As an added level of security, you can either add or edit the "AllowUsers" line. This restricts ssh to just those users listed on that line. Separate each user you want to allow with a space.
 
Old 12-12-2004, 12:36 PM   #3
Soulstealer
Member
 
Registered: Dec 2004
Location: Necropolis
Distribution: FreeBSD
Posts: 47

Original Poster
Rep: Reputation: 15
10x! It works
 
  


Reply


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 03:18 AM
disable root login via ssh with one exeption inoxtech Linux - Security 3 06-30-2005 12:28 PM
disable root login with ssh linuxtesting2 Slackware 3 02-16-2005 01:33 PM
How can I disable root login with SSH? blk96gt Slackware 9 10-02-2004 08:09 AM
SSH/Telnet, disable root login, how? muhazam Linux - Security 6 08-17-2004 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:46 AM.

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