Updated on 2024-12-03 GMT+08:00

Configuring SMS Login Authentication

You can configure a mobile phone to receive a 6-digit code for login identity verification. In SMS authentication method, both the static login password and a 6-digit SMS verification code are required for login.

Constraints

  • Only one phone number can be bound to a system user account.
  • You have enabled the SMS gateway IP address and port 10743 and port 443 for the security group of the bastion host instance, and the bastion host system can access the SMS gateway.

Step 1: Bind a Phone Number

The phone number bound to a user account must be valid and can receive SMS messages.

Method 1: Binding a phone number as an individual system user

  1. Log in to your bastion host using your static password.
  2. On the Dashboard page, click the user name in the upper right corner and choose Profile.
  3. In the displayed Profile management page, click Edit.
  4. In the displayed Edit Basic Info dialog box, enter a valid phone number in the Mobile text box.

    The country code is required for phone numbers. The format is as follows: + country code phone number, for example, +86 1xxxxxxxxxx.

  5. Click OK.

Method 2: Changing a user's phone number as the administrator

  1. Log in to your bastion host as the administrator.
  2. Choose User > User to go to the User management page.
  3. Select a user and click its LoginName.
  4. On the displayed page, click Edit in the Basic Info area.
  5. Enter a valid phone number in the Mobile text box.
  6. Click OK.

Step 2: Configure SMS Authentication as the Administrator

  1. Log in to your bastion host as the administrator.
  2. Choose User > User to go to the User management page.
  3. Select a user and click its LoginName.
  4. In the User Setting area, click Edit.

    Figure 1 Editing user setting

  5. In the displayed Edit user setting dialog box, select Mobile SMS for Multifactor Verification.
  6. Click OK.

    The next time the user logs in to the system, they will have to provide an SMS code.