Solved

How to disable direct root login via ssh

Posted on 2011-09-12
4
629 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 167 total points
ID: 36521628
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 166 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 167 total points
ID: 36521883
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why isnt it sending mail from my php but is from my server 10 44
Can't ping New Linux Servers 40 65
windows 7 starter missing password 21 75
CENTOS DHCP Server / PXE/TFTP 14 69
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

813 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now