You can set a logon password for a simple application server after you create the server. You can reset the logon password for a simple application server if you forget the password. This topic describes how to set or reset logon passwords for simple application servers.
Prerequisites
If you want to update the password of a server offline, the server must be in the Running or Stopped state.
If you want to update the password of a server online, the server and Command Assistant must be in the Running state. In addition, the version of Command Assistant must meet one of the following requirements:
For Linux servers, the version of Command Assistant must be 2.2.3.398 or later.
For Windows servers, the version of Command Assistant must be 2.1.3.398 or later.
Limits
The offline password reset feature lets you set or reset only the password of the server administrator account in the Simple Application Server console.
The administrator account for a Linux server is
root.The administrator account for a Windows server is
administrator.
Procedure
Go to the Servers page in the Simple Application Server console.
In the card of the desired simple application server, click Reset Password.
In the Reset Password dialog box, configure parameters as needed. The following table describes the parameters.
Parameter
Description
Logon Name
This parameter cannot be changed:
Linux:
root.Windows:
administrator.
New Password
Enter a password. The password must be 8 to 30 characters in length and contain at least three of the following character types:
Lowercase letters (a to z)
Uppercase letters (A to Z)
Digits (0 to 9)
Special characters. Supported special characters are
( ) ` ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; ' < > , . ? /.
ImportantFor Windows servers, logon passwords cannot start with a forward slash (/).
Passwords must be sufficiently complex and regularly altered to minimize the risk of being compromised through brute-force methods.
Enter Password Again
Enter the new password again to confirm the password.
Ways to set password
You have two options for changing your password:
Change Online: After you update a password, the new password immediately takes effect without server restarts.
Change Offline: After you update a password, the new password takes effect after you restart the server.
Click Confirm Settings.
In the Reset Password dialog box, perform one of the following operations based on your password change method:
Change Online: If the Password reset successfully. message appears, the password is updated.
Change Offline: Determine whether to restart the server as needed.
Restart the server immediately: Click Restart Now. The password takes effect after the server is restarted.
WarningThe restart operation stops the instance for a short period of time and may interrupt services that are running on the instance. We recommend that you restart the instance during off-peak hours.
Restart the server later: Click Do Not Restart. You can restart the server during off-peak hours to make the new password take effect.
FAQ
Why am I unable to log on after changing the password online?
If third-party antivirus software is installed on your Simple Application Server instance, the software can block the Change Online operation. This causes the password change to fail. We recommend that you choose Change Offline or call the UpdateInstanceAttribute operation to reset the instance password. Then, restart the instance and log on.
Why is the logon password of my instance automatically changed?
The logon password of your instance may be automatically changed because of malicious scripts or mining programs. Go to the Security Center console to investigate and resolve the issue.
For more information, see FAQ about remote connection.
References
To improve server security, we recommend that you use an SSH key pair to log on to a Linux server. For more information, see Manage key pairs (Linux).