[EN] How to enable access root for Cloud Server

After creating a Cloud Server, the system will send an email informing User and Password to login for the first time.

After SSH Login with User and Password, the system will ask you to enter the current Password again for confirmation.

The system will force you to set a new password. After that, login with the new password again.

After SSH Login again, access the user Root with the command

sudo -i

User Root is disabled by default. Set a root password by running the command.


To enable Root Access, you will need to edit the file /etc/ssh/sshd_config

Edit the following line

#PermitRootLogin prohibit-password


PermitRootLogin yes

To apply new ssh config, SSH need to reload by using the command

systemctl restart sshd

Now you can SSH Login with user root.

Was this article helpful?

Related Articles