Help Center/ Elastic Cloud Server/ FAQs/ Password and Key Pair/ How Can I Change the Password for Logging In to a Linux ECS?
Updated on 2025-04-09 GMT+08:00
How Can I Change the Password for Logging In to a Linux ECS?
Solution
- Use the existing key file to log in to the Linux ECS as user root.
- Run the following command to reset the password of user root:
passwd
To reset the password of another user, replace passwd with passwd username.
- Enter the new password as prompted.
New password: Retype new password:
If the following information is displayed, the password has been reset:passwd: all authentication tokens updates successfully
Parent topic: Password and Key Pair
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.