• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 640
  • Last Modified:

How to disable direct root login via ssh

Hi,

for security purpose i want to disable direct root login on a server (redhat).Can you please help me out
0
cismoney
Asked:
cismoney
  • 2
3 Solutions
 
Didier VallySystems Engineer and Finance AnalystCommented:
0
 
woolmilkporcCommented:
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
 
woolmilkporcCommented:
... don't forgert to restart sshd to make your changes take effect!

wmp
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now