After you log on to Bastionhost and pass password authentication, you can select a two-factor authentication method such as a text message, email, DingTalk work notification, or OTP token for secondary authentication. Two-factor authentication effectively reduces the security risks caused by password leaks. This topic describes how to enable two-factor authentication.
Notes on enabling two-factor authentication
Two-factor authentication in Bastionhost applies to all Bastionhost local users, AD-authenticated users, and LDAP-authenticated users. To configure two-factor authentication for a Resource Access Management (RAM) user, log on to the RAM console and configure the settings. For more information, see Bind an MFA device to an Alibaba Cloud account.
The global multi-factor authentication (MFA) configuration has a lower priority than the manual configuration for an individual user. To configure two-factor authentication for an individual user, see Manage users.
Procedure
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the list of Bastionhost instances, find the target instance and click Manage.
In the left-side navigation pane, choose System Settings > Authentication Settings.
Click the Two-Factor Authentication tab.
Turn on the Enable Two-factor Authentication switch, select an Authentication Method, and then click Save.
Parameter
Description
Authentication Method
Text Message
Uses a text message verification code for secondary authentication.
Make sure that the user account used for O&M operations has a mobile phone number. Otherwise, the user cannot receive the verification code. For more information about how to add a mobile phone number for a user, see Modify the basic information of a local user.
Email
Uses an email verification code for secondary authentication.
Make sure that the user account used for O&M operations has an email address. Otherwise, the user cannot receive the verification code. For more information about how to configure an email address for a user, see Modify the basic information of a local user.
DingTalk
Uses DingTalk for secondary authentication.
Make sure that the following requirements are met:
The user account used for O&M operations has a mobile phone number. For more information about how to add a mobile phone number for a user, see Modify the basic information of a local user.
The DingTalk administrator has created an internal enterprise application and granted the application the API access permissions for retrieving member information by mobile phone number and name.
You have obtained the AppKey, AppSecret, and AgentId.
OTP App
Uses a mobile OTP token for authentication.
Download a standard Time-based One-time Password (TOTP) authenticator app, such as the Alibaba Cloud app. Log on to the Bastionhost O&M portal through a public endpoint. In the left-side navigation pane, choose tab, scan the QR code, and bind the OTP token for authentication. For more information about how to log on to the Bastionhost O&M portal, see Log on to the O&M portal.
Language
The language used to send two-factor authentication notifications. You can select Simplified Chinese or English.
If the two-factor code is correct, you do not need to enter the code for
The period during which two-factor authentication is skipped. Valid values: 0 to 168 hours or 0 to 7 days. Default value: 0 hours, which indicates that a two-factor authentication code must be entered for each logon.
During this period, the same user does not need to enter a two-factor authentication code when logging on from the same source IP address.
Troubleshoot verification code errors: If a "Verification code error", "Verification code prompt error", or "SMS verification code error" message still appears after you enter a correct text message or email verification code during logon, check the two-factor authentication configuration. Make sure that only one Authentication Method is retained globally. For example, retain only Text Message, and enter the verification code that corresponds to that authentication method during logon. If the issue persists, use a compatible client tool recommended by Bastionhost to test the connection.
Supported countries and regions
Region | Country or special administrative region (calling code) |
Regions in China | Hong Kong (China) (+852) |
Macao (China) (+853) | |
Taiwan (China) (+886) | |
Chinese mainland (+86) | |
Regions outside China | Australia (+61) |
Poland (+48) | |
Germany (+49) | |
United Arab Emirates (+971) | |
Russia (+7) | |
France (+33) | |
Philippines (+63) | |
Republic of Korea (+82) | |
Malaysia (+60) | |
United States (+1) | |
Japan (+81) | |
Sweden (+46) | |
Switzerland (+41) | |
Spain (+34) | |
Singapore (+65) | |
Israel (+972) | |
Italy (+39) | |
India (+91) | |
Indonesia (+62) | |
United Kingdom (+44) | |
Saudi Arabia (+966) | |
Thailand (+66) | |
Vietnam (+84) | |
Cambodia (+855) |
FAQ
Does Bastionhost charge fees for SMS-based two-factor authentication?
Bastionhost does not charge any fees for the SMS-based two-factor logon feature.
Does the Bastionhost O&M token use cryptographic technology?
The Bastionhost O&M token is implemented with cryptographic technology. It supports multiple two-factor authentication methods, such as text messages, email, DingTalk work notifications, and OTP tokens. At least one of the authentication technologies is implemented with cryptographic technology.