Updated on 2022-08-11 GMT+08:00

How Do I Use 2FA?

This FAQ shows you how to use 2FA.

Enabling 2FA

For details, see Enabling Two-factor Authentication.

Logging In and Passing 2FA Authentication

  • Logging in to a Linux server
    1. Use PuTTY or Xshell to log in to your server.

      Select Keyboard Interactive and enter the user identity information.

      • PuTTY

        Select Keyboard Interactive and click OK. See Figure 1.

        Figure 1 Keyboard interaction method (1)
      • Xshell

        In the New Session Properties dialog box, choose Connection > Authentication > Method, choose Keyboard Interactive from the Method drop-down list, and click OK.

        Figure 2 Keyboard interaction method (2)
    2. Enter the account and password of the server.
    3. Enter the 2FA verification code sent to your terminal, as shown in Figure 3.
      Figure 3 Entering a verification code
      • The mobile phone or email box subscribed to a notification topic will receive a message: [HUAWEI CLOUD] Login verification code # XX for your ECS (xxxx-yyyy): XXXXXX.
      • If you do not receive the verification code, check to ensure the SELinux firewall is disabled and try again.
      • If HSS detects that the host may be under a brute force attack, it will ask you to enter detailed information about the subscription terminal (such as the mobile number or email address) before sending a verification code, as shown in Figure 4.
        Figure 4 Entering a mobile number or email address
      • You can add up to 10 mobile numbers and email addresses at a time. A topic can have up to 10,000 mobile numbers and email addresses.
  • Logging in to a Windows server
    1. Click Start, enter Remote Desktop Connection in the search box, and press Enter to open the remote desktop connection.
    2. Enter the IP address of the host in the Computer text box and click Connect.
      Figure 5 Remote desktop connection
    3. Enter the reserved mobile number or email address to receive 2FA verification code.

      The mobile phone or email box subscribed to a notification topic will receive a message: [HUAWEI CLOUD] Login verification code # XX for your ECS (xxxx-yyyy): XXXXXX.

    4. Enter the verification code, host account name, and password on the login page, and click to log in to the host.

Two-factor Authentication (2FA) FAQs

more