Save up to 30% on Dedicated Servers – Chat Now!

Your Webhosting Questions
Answered by the Webhosting Experts
Tags +
...
Tags
...
...

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…

Share

Facebook
Twitter
LinkedIn
Email
WhatsApp

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.