LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2003, 01:09 PM   #1
cire
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Disallowing root login in SSH


i was wondering how i can disallow root to login via ssh or be su'd during an ssh session. thanks in advanced for any help.
 
Old 08-06-2003, 01:19 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Add:
PermitRootLogin no

To sshd_config then restart the ssh server.
 
Old 08-06-2003, 07:20 PM   #3
akh
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Rep: Reputation: 0
Ok....HOW? and WHY?

Last edited by akh; 08-06-2003 at 07:27 PM.
 
Old 08-06-2003, 09:29 PM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Edit the file /etc/ssh/sshd_config
and on the PermitRootLogin line, change yes to no.

You would do this to increase security.
Since all Linux systems have a root user and root has full access to the system,
disallowing access from the outside (internet) increases overall security.
 
  


Reply



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
Allow upgrade to root after login ssh bourbon_beast Linux - Security 2 10-27-2005 04:21 AM
disable root login with ssh linuxtesting2 Slackware 3 02-16-2005 12:33 PM
ssh only allow root login chongluo Linux - Newbie 1 10-28-2004 08:51 AM
Only Root Login via ssh / ftp Lanmate Linux - General 2 12-22-2003 11:11 PM
Only root can login via ssh cmisip Linux - Security 5 04-26-2003 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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