Create a host account

更新时间:
复制 MD 格式

Before you connect to a host in an ApsaraDB MyBase for MySQL dedicated cluster, you must create a host account. The process covers three steps: enabling the bastion host, associating the cluster host with it, and creating the account.

Prerequisites

Before you begin, ensure that you have:

Step 1: Enable the bastion host

  1. Log on to the Bastionhost console.

  2. Find the bastion host and click Run on the right side. For more information, see Enable a bastion host.

    Enable a bastion host

Step 2: Associate the host with the bastion host

  1. Log on to the ApsaraDB for MyBase console.

  2. In the upper-left corner, select a region.

  3. Find the dedicated cluster and click Details in the Actions column.

  4. In the left-side navigation pane, click Bastion Hosts. Find the bastion host and click Associate with Bastion Host in the Actions column.

    Associate an ApsaraDB MyBase host with a bastion host

  5. Click Import Host. In the dialog box, select the host and click Import.

Step 3: Create a host account

  1. Find the host and click Add an account in the Host Account column.

    Host account

  2. In the Create Host Account dialog box, configure the following parameters.

    Create Host Account dialog box

    Parameter Requirements
    Username - Starts with a lowercase letter and ends with a letter or digit. - Contains lowercase letters, digits, and underscores (_). - 2–16 characters in length. - Cannot be root, admin, or a username reserved by the system.
    Password - Contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. - 6–32 characters in length. - Allowed special characters: ! @ # $ % ^ & * ( ) _ + - =
  3. Click Create.

    Note

    After creation, manage the host account — including modifying or deleting it — in the Bastionhost console. For more information, see Configure account information for a host.

What's next

Connect to the host using the account you just created. For more information, see Log on to a host by using a bastion host in Linux.