Skip to content

Permit root login on the One VPS platform.

By default, your VPS Server has the ‘Permit Root login’ disabled, from a security perspective we would recommend you leave the default setting and either connect via the console from your customer control panel or use an SSH key to connect, however if you wish to enable it, follow the process below:

  • Connect to your server from your customer control panel.
  • Log into your server with the credentials entered at the time you placed the order.
  • Type the following at the prompt: vi /etc/ssh/sshd_config
  • Locate the line #PermitRootLogin prohibit-password.
  • Press i on your keyboard to enter insert mode and replace the line above with the following: PermitRootLogin yes.
  • Press escape and the :wq to save the file and quit vi.
  • Restart the SSH service: sudo systemctl restart sshd.

We recommend if you reinstall your server you use an SSH key and use this to connect via SSH once installed please see the following document on how to create / use an SSH key: https://www.simplyhosting.com/support/articles/how-to-generate-an-ssh-key/


Was this article helpful?

Related guides