Enable root login over SSH
- Login to your server as root.
- As the root user, edit the sshd_config file found in /etc/ssh/sshd_config:
vim /etc/ssh/sshd_config(For details on working with Vim check out our article here!)
- Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there.
- Save and exit the file.
- Restart the SSH server:
systemctl restart sshdor
service sshd restart
PermitRootLogin without-passwordThis process should work on almost any version of Linux server that the sshd service is installed. If you are using a cPanel server though you can easily control this setting from the WHM interface. In these cases, it’s recommended to modify this setting from your control panel interface.
Have more questions about this process? Reach out to one of our Heroic Support admins 24 hours a day, 365 days a year by creating a ticket at firstname.lastname@example.org, opening a chat with us or giving us a call at 1-800-580-4985. We are always looking forward to providing an answer to any questions you may have! Thank you for hosting with Liquidweb!