Updated on 2024-09-25 GMT+08:00

How Do I Use 2FA?

This FAQ shows you how to use 2FA.

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

        Set the authentication mode to Keyboard Interactive and click OK.

      • Xshell

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

    2. Enter the account and password of the server.
    3. Enter the 2FA verification code sent to your terminal.
      Figure 1 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 a server 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 2.
        Figure 2 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 3 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, server account name, and password on the login page, and click to log in to the server.