Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to disable direct root login via ssh

Posted on 2011-09-12
4
Medium Priority
?
639 Views
Last Modified: 2012-05-12
Hi,

for security purpose i want to disable direct root login on a server (redhat).Can you please help me out
0
Comment
Question by:cismoney
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Didier Vally earned 668 total points
ID: 36521628
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 664 total points
ID: 36521629
Add to /etc/ssh/sshd_config

PermitRootLogin   no

Other options to PermitRootLogin

are "yes" (self-explanatory),  "without-password" (login via public key only) and "forced-commands-only'' (no interactive shell, only commands).

wmp
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36521632
... don't forgert to restart sshd to make your changes take effect!

wmp
0
 
LVL 2

Assisted Solution

by:ind_selva
ind_selva earned 668 total points
ID: 36521883
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question