how do I disable root logins?

Disabling direct root login to your VPS is almost a must!

Why? It makes it easier for an attacker to try and determine who priviledged user is. 

Basically, you add a new user, and give him priviledged access. In some cases where you need to run commands as root, you can just use " su -" to get root access, or even run command as "sudo {command name}".

 To setup sudo & a priviledged user, we suggest the following article on the CentOS Wiki 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I set a nice looking bash prompt on my Linux VPS?

Add the following lines to the end of /etc/profile PS1="\[\e]2;\u@\H...

How do I change my VPS's hostname

If you want to change your Virtual Private Server's hostname, you first need to login to your VPS...

What is a Virtual Private Server?

A Virtual Private Server, or VPS is simply put, a "slice" of a dedicated server. Dedicated...

How can I secure my VPS?

If you own, or run a Virtual Private Server, or Dedicated server on the internet, then you need...

How to change SSH default port

Most script kiddies & crackers will first try and telnet to a server to see if Telnet is...