Results 1 to 1 of 1
-
15th Jun 2014, 02:05 PM #1
Disable Direct Root Login
Allowing the root user to login directly is a major security issue, we'll show you how to disable it so you can still login as root but just not directly, reducing the security issue.
This will force a hacker to have to guess 2 seperate passwords to gain root access.
(you do have 2 seperate passwords for admin and root right?)
What happens is you'll first need to login as your admin user in SSH, then switch to the super user with the su command to get root.
We also will be forcing the use of SSH protocol 2, which is a newer, more secure SSH protocol
Just a couple more ways to help your server stay safe from the bad guys. If you're using cPanel make sure you add your admin user to the 'wheel' group so that you will be able to 'su -' to root, otherwise you may lock yourself out of root.
1. SSH into your server as 'admin' and gain root access by su
2. Copy and paste this line to edit the file for SSH logins
Code:pico -w /etc/ssh/sshd_config
Protocol 2, 1
Protocol 2
Code:PermitRootLogin yes
7. Save the file Ctrl+X then Y then enter
8. Now you can restart SSH
Code:/etc/rc.d/init.d/sshd restart
Areon Reviewed by Areon on . Disable Direct Root Login Allowing the root user to login directly is a major security issue, we'll show you how to disable it so you can still login as root but just not directly, reducing the security issue. This will force a hacker to have to guess 2 seperate passwords to gain root access. (you do have 2 seperate passwords for admin and root right?) What happens is you'll first need to login as your admin user in SSH, then switch to the super user with the su command to get root. We also will be forcing the Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
how to disable login auth in transmissionbt?
By bachbell in forum Server ManagementReplies: 0Last Post: 12th Jan 2012, 12:08 AM -
Disable Live Links? Need the mod?
By Whoo in forum vBulletinReplies: 18Last Post: 4th Feb 2009, 03:54 PM -
how do i disable link shortening?
By Dark Shadow in forum vBulletinReplies: 2Last Post: 24th Dec 2008, 11:16 PM -
WHere is this login code??
By swapnil0545 in forum vBulletinReplies: 3Last Post: 3rd Dec 2008, 01:18 PM -
dirtywarez looking for direct link exchange
By crook in forum Traffic Market (Buy, Sell and Trade)Replies: 0Last Post: 15th Jun 2008, 07:31 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...