//h3ll0s

Disable Login SSH as Root

8:05:00 PM | Labels: Linux | No comment yet
By default SSH allows users to access the machine remotely as root. This is very risky for you as a System Administrator. following way perm disable SSH as root:

1. Open the SSH configuration
$ sudo nano /etc/ssh/sshd_config

Find the section this line:

LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

Edit to change the PermitRootLogin to no

PermitRootLogin no

2. Save settings for, and then restart the SSH
$ sudo /etc/init.d/ssh restart


Done
Email This BlogThis! Share to X Share to Facebook

Post a Comment

Older Post Home Newer Post
Subscribe to: Post Comments (Atom)

Voice Of GreyHat

Loading...

Exploit Database

Loading...

Labels

  • Exploits (12)
  • Hacking (4)
  • Linux (9)
  • Network (1)
  • Perl (2)
  • Virus (2)
 
© 2011 //h3ll0s | Powered by Indonesian GreyHat Home | RSS | Back to Top