Most preinstalled OSes forbid ssh login as user root for security reason.
You can switch to user root from your normal ssh login by using sudo or su -.
In case you need ssh root login to be enabled, you can enable it by editing /etc/ssh/sshd_config (i.E. via "sudo nano /etc/ssh/sshd_config") and edit "PermitRootLogin no" to "PermitRootLogin yes".
After this you need to restart the ssh server by running "systemctl restart sshd"
Please note, that enabling root login weakens the security of your VPS or dedicated Server and is therefore not recommended.
- ssh, VPS, root, login
- 0 Users Found This Useful