On a 弹性云 Linux system, enter single-user mode via the console to reset the SSH login password (applicable to CentOS 7).
Published: 2015-12-19
For centos6 system, please refer to: https://www.west.cn/faq/list.asp?unid=756
Via Management Center - Business Management - Server Management - Manage, as shown in the attached figure:

Then click “System Management”--“WEB Console”, as shown in the attached figure:

Then click Hot Restart Server as shown in the attached figure:

After clicking, the system will restart. At this time, quickly press the ESC key to enter the kernel interface, select the first one and press the letter e, as shown in the figure below:

Find the line shown in the figure (Note: The VNC connection interface is not fully displayed; press the ↓ key on the keyboard to find this line), use the left and right arrow keys on the numeric keypad to move to this line and change ro to rw init=/sysroot/bin/sh (red box).


After the modification is complete, press ctrl+X to boot, then enter the following commands in sequence
chroot /sysroot/
passwd root
The result is shown in the figure below:
Note: The entered password is not displayed.

After the prompt indicates that the modification is successful, enter
touch /.autorelabel
Then press curl+d to exit
Enter reboot to restart
```