Password change tasks in Bastionhost rotate passwords or keys at scheduled times or periodic intervals based on rules that you configure. This process improves your business security. This topic describes how to use password change tasks.
Background information
Security compliance regulations require you to periodically change host account passwords or keys. Using the same passwords or keys for an extended period creates security risks. Manually rotating passwords and keys is a tedious and error-prone task. The automatic password change feature in Bastionhost solves these problems. This feature greatly improves O&M efficiency and security.
Conditions
Version requirements: This feature is available only in Bastionhost Enterprise Edition and SM-compliant Edition. To purchase or upgrade a Bastionhost instance, see Purchase an instance and Upgrade an instance type.
Task limits:
Password change tasks do not support shared key rotation.
A host account can be associated with only one password change task.
Prerequisites
You must import host assets and escrow the host accounts in Bastionhost. For more information, see Create a host and Manage host accounts.
Create a password change task
Log on to the Bastionhost system. For more information, see Log on to the system.
In the navigation pane on the left, choose .
On the Password Change page, click Create Password Change Task.
In the Password Change Task panel, configure the parameters for the task as described in the following table and then click Create.

Parameter
Description
Task Name
Enter a name for the password change task.
Task Type
The options are Key Rotation and Password Rotation.
Execution Mode
Select an execution mode for the task. The following modes are available:
Periodic Execution: Bastionhost automatically runs the task at the specified time and interval.
The execution time must be at least five minutes after the current time.
The maximum period is 365 days.
Scheduled Execution: Bastionhost automatically starts the task at the scheduled time. The execution time must be at least five minutes after the current time.
Password Rule
When you set Task Type to Password Rotation, you can configure the password complexity and length.
Password Complexity: Select the character types to include, such as digits, lowercase letters, uppercase letters, and other characters. Bastionhost randomly generates a new password based on the selected types. Select at least two character types.
Password Length: Set the minimum and maximum password length. The value must be between 8 and 32. For example, if you set the minimum value to 8 and the maximum value to 32, a password with a random length from 8 to 32 characters is generated.
Password Policy: Set the minimum number of characters, character repetition limit, and excluded characters. The total number of minimum letters and other characters cannot exceed the password length.
The value for digits, lowercase letters, uppercase letters, and other characters must be between 0 and 32.
The value for the number of times a character can be repeated must be between 1 and 32.
Excluded character set: The generated password will not contain any characters from this set.
Key Rule
When you set Task Type to Key Rotation, you can configure the key algorithm, key length, and encryption password.
Key Algorithm: The options are RSA and ED25519.
Key Length: If you select RSA as the key algorithm, you can set the key length to 2048, 3072, or 4096 bits.
Encryption Password: Set the encryption password for the key. A key encryption password is a security mechanism used to protect the encryption key.
Remarks
Enter supplementary information about the password change task.
Click Associate Accounts. On the Escrowed Accounts tab, click Add Host Account.
In the Add Host Account dialog box, select the host accounts that you want to add and click Add.
After the account is added, a message appears indicating that the Password Change Task Is Successfully Associated With The Host Account. You can view the created password change task on the Password Change Tasks page.
NoteA host account can be associated with only one password change task.
If the task type is Password Rotation, you can add only accounts whose passwords have been escrowed. If the task type is Key Rotation, you can add only accounts whose Secure Shell (SSH) private keys have been escrowed. Shared keys cannot be rotated.
Related operations
Run a password change task immediately
Immediately change the password for one or more accounts
View password change records
Modify, enable, stop, or delete a password change task
Export passwords and password change logs
Operating system versions that support password change tasks
Operating system | Version | |
Windows | Microsoft Windows |
|
Microsoft Windows Server |
| |
Linux | Alibaba Cloud Linux |
|
CentOS |
| |
Ubuntu |
| |
Debian |
| |
openSUSE |
| |
SUSE Linux |
| |
CoreOS |
| |
Red Hat Enterprise |
| |





