How to disable direct root Logins?

  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  pico -w /etc/ssh/sshd_config
  3. Find the line  Protocol 2, 1
  4. Uncomment it and change it to look like Protocol 2
  5. Next, find the line  PermitRootLogin yes
  6. Uncomment it and make it look like PermitRootLogin no
  7. Save the file Ctrl+X then Y then enter
  8. Now you can restart SSH /etc/rc.d/init.d/sshd restart

These instructions can vary from system to system…

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

How can I create a database from an sql backup file ?

First, create the database.. /path/to/bin/mysqladmin -u $mysqlusername -p$mysqlpassword create...

How can I see all running processes from my server?

Type the following command from shell prompt.It will display the currently running processes. ps...

Connecting to your Windows server

To connect to your Windows VPS or Dedicated server, you use Remote Desktop Connection. Go to:...

Connecting to your Linux server

To connect to your Linux VPS or Dedicated Server, you need a ssh client.  We recommend...

Memory usage seems too high inside a VPS

There are cases when you may notice that the memory usage is too high inside your VPS without a...