Enabling Root Login Print

  • 0

Enabling root login

If your VPS is of the current ranges (naming scheme: vps-XXXXXXX.vps.howtekno.com), you have received login credentials for a user with elevated permissions instead of the default “root” account. Additionally, the SSH service is not accepting login requests as root.

Enabling root logins is usually regarded as a security vulnerability and is therefore not recommended.

We recommend taking measures to secure your VPS first.

Step 1: Edit the sshd_config file

Use a text editor such as vim or nano to edit this configuration file:

~$ nano /etc/ssh/sshd_config

Add the following line.

PermitRootLogin yes

Look for this line and make sure it is commented out:

#PermitRootLogin prohibit-password

Save the file and exit the editor.

Step 2: Restart the SSH service

~$ systemctl restart sshd

This should be sufficient to apply the changes. Alternatively, reboot the VPS (~$ reboot).

Was this answer helpful?

« Back

Powered by WHMCompleteSolution