All Products
Search
Document Center

Simple Application Server:Reset the logon password of a simple application server

Last Updated:Oct 21, 2024

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 allows you to set or reset only the password of the server administrator account in the Simple Application Server console.

  • For Linux servers, the administrator account is root.

  • For Windows servers, the administrator account is administrator.

Procedure

  1. Log on to the Simple Application Server console.

  2. In the left-side navigation pane, click Servers.

  3. In the card of the desired simple application server, click Reset Password.

  4. In the Reset Password dialog box, configure parameters based on your business requirements. The following table describes the parameters.

    Parameter

    Description

    Server Administrator Account

    Select an administrator account whose password you want to update. You can update the password of only one of the following administrator accounts:

    • Linux: root.

    • Windows: administrator.

    Server 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 including ( ) ` ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; ' < > , . ? /

    Important
    • For 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.

    Password Change Methods

    Select a method to change the password. Valid values:

    • 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.

  5. Click OK.

  6. 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 based on your business requirements.

      • Restart the server immediately: Click Restart Now. The password takes effect after the server is restarted.

        Warning

        The 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

Q1: Why am I still unable to log on to my simple application server after I change the logon password online?

A1: When third-party antivirus software is installed on the server, the antivirus software may block the online password change operation, causing the operation to fail. In this case, we recommend that you change the password offline. Alternatively, you can call the UpdateInstanceAttribute operation to reset the password. Then, you can restart the server and use the new password to log on to it.

Q2: Why is the logon password of a simple application server automatically changed?

A2: The logon password of a simple application server may be automatically changed because malicious scripts or mining programs exist on the server. You can view and resolve this issue in the Traffic Security console.

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 on Linux simple application servers.