Updated on 2022-02-22 GMT+08:00

Step 2: Log In to the BMS

Scenarios

After you create a BMS, you can log in to it using multiple methods. This section describes the procedure to log in to a BMS using an SSH key pair. For more login modes, see Linux BMS Login Methods or Windows BMS Login Methods.

Procedure

The following steps describe how to log in to a BMS using an SSH key pair through PuTTY.

  1. Log in to the Cloud Server Console.
  2. In the navigation pane, choose Bare Metal Server.
  3. In the upper left corner, click and select a region.
  4. In the BMS list, locate bms-7676-nginx. Record the EIP of the BMS and perform the following steps:
    1. Check whether the private key file has been converted to .ppk format.
      • If yes, go to step 4.g.
      • If no, go to step 4.b.
    2. Visit the following website and download PuTTY and PuTTYgen:

      https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

      PuTTYgen is a private key generator, which is used to create a key pair that consists of a public key and a private key for PuTTY.

    3. Run PuTTYgen.
    4. In the Actions area, click Load and import the private key file that you stored when creating the BMS.

      Ensure that the private key file is in the format of All files (*.*).

    5. Click Save private key.
    6. Save the converted private key, for example, kp-123.ppk, to your local PC.
    7. Double-click PUTTY.EXE. The PuTTY Configuration page is displayed.
      Figure 1 PuTTY Configuration
    8. Choose Connection > Data. Enter the image username in Auto-login username.

      Contact the administrator to obtain the image username.

    9. Choose Connection > SSH > Auth. In the last configuration item Private key file for authentication, click Browse and select the .ppk private key in step 4.f.
    10. Choose Session and enter the EIP of the BMS in the box under Host Name (or IP address).
    11. Click Open.

      Log in to a BMS.