How to change the remote password of a cloud server?

08-02-2024 02:49:24

For security reasons, it is generally recommended to change the remote password when initially managing a cloud server. Additionally, the remote password should be as complex as possible.

Linux Operating System

You can use the following Linux commands to change the remote password:

passwd

Based on the command-line prompts, enter the new password twice, and the remote password will be successfully changed.

Some Linux cloud servers have a non-root user login by default, such as the username "ubuntu." If you wish to log in as the root user, you can first log in with the non-root user, then use the following command to modify the root user's password, and finally, use the "su" command to switch to the root user.

sudo passwd root
su

Windows Operating System

Open "Control Panel => System and Security => Administrative Tools => Computer Management," then expand "System Tools => Local Users and Groups => Users." Right-click on the Administrator user, click "Set Password," then click "Continue." Enter the new password and confirm it, and click "OK" to successfully change the password.