Updated on 2025-01-07 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

        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 a mobile number or email address to obtain the verification code.

      After 2FA is enabled, only the mobile number or email address that has subscribed to an SMN topic will receive the verification code.

      • Enter a mobile number. All the subscription endpoints (mobile numbers and email addresses) in the topic subscribed to by this mobile number will receive a verification code message.
      • Enter an email address. Only this email address will receive a verification code email.
    4. Enter the verification code received by the subscription endpoint.
      Figure 1 Entering a verification code

      If you do not receive the verification code, check to ensure the SELinux firewall is disabled and try again.

  • 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 2 Remote desktop connection
    3. Enter the reserved mobile number or email address to receive 2FA verification code.
      • Enter a mobile number. All the subscription endpoints (mobile numbers and email addresses) in the topic subscribed to by this mobile number will receive a verification code message.
      • Enter an email address. Only this email address will receive a verification code email.
    4. Enter the verification code, server account name, and password on the login page, and click to log in to the server.