Solved

How to disable direct root login via ssh

Posted on 2011-09-12
4
631 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux boot cd to do hardware report on PC? 3 101
lunix and unix command 21 155
The better OS Architecture 13 110
How to fix Dual Server Conflict GitLab vs Apache2 3 59
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.
Suggested Courses

751 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