Knowledgebase - FreeBSD Root Login - Enable or Disable

Our Client Portal

Portal Home > Knowledgebase > Dedicated Servers > FreeBSD Root Login - Enable or Disable

FreeBSD Root Login - Enable or Disable

To enable or disable root login, you need to set this in /etc/ssh/sshd_config file.

# cd /etc/ssh
# vi sshd_config

To disable direct root SSH login, you need to add following to /etc/ssh/sshd_config

PermitRootLogin no

To enable direct root SSH login, you need to add following to /etc/ssh/sshd_config

PermitRootLogin yes

After you do the changes, save and exit. Then restart sshd.

# /etc/rc.d/sshd restart

Add to Favourites Add to Favourites

Was this answer helpful?

Print this Article Print this Article

Also Read

Recent News
Knowledgebase Articles
It is now possible to temporarily suspend the monitoring of Managed Dedicated Se...
Please Note: In order to reset your Centos password you will need KVM access to ...
As of Java version 7 onwards, the Java development team continue to make securit...