How to Change Your Root Password

When your VPS is set up, it comes with a default root password that was generated automatically. Changing it to something only you know is one of the most important first steps you can take to keep your server secure.

Step 1: Connect to your server via SSH

If you have not done this before, see our guide: How to Connect to Your VPS via SSH.

Once connected, your terminal will show a prompt like root@your-server:~#

Step 2: Run the password change command

Type the following and press Enter:

passwd

You will be prompted to enter a new password twice. You will not see any characters as you type — this is normal.

Choose a strong password: at least 12 characters, mixing uppercase, lowercase, numbers, and symbols.

Step 3: Save your new password somewhere safe

Store it in a password manager (such as Bitwarden or 1Password) straight away. If you lose your root password, you will need to reinstall your server through the Server Portal, which will erase all data.

Updating your password in the Server Portal

After changing your password via SSH, your new password will not automatically update in the Server Portal. Just make a note of it separately — the portal only stores the password that was set when your server was provisioned or last reinstalled.

On a Windows Server?

Connect via Remote Desktop (RDP). Once logged in, press Ctrl + Alt + End and select Change a password from the menu.

Need help? Open a support ticket and we will walk you through it.

Was this article helpful?

Discussion (0)

Info

Once payment is completed, the amount you have selected will be credited to your account balance, enabling you to renew your services or place new orders.

How much do you want to add?