Before you access a host in an ApsaraDB MyBase for PostgreSQL dedicated cluster, create an account for the host. This topic describes how to create an account for a host in an ApsaraDB MyBase for PostgreSQL dedicated cluster.

Prerequisites

Procedure

  1. Log on to the Bastionhost console. Find the bastion host that you want to manage and click Run in the right corner of the page to enable the bastion host. For more information, see Enable a bastion host.
    Enable a bastion host
  2. Associate an ApsaraDB MyBase host with the bastion host.
    1. Log on to the ApsaraDB MyBase console.
    2. In the upper-left corner of the page, select a region.
    3. Find the cluster that you want to manage and click Details in the Actions column.
    4. In the left-side navigation pane, click Bastion Hosts, find the bastion host that you want to manage, and then click Associate with Bastion Host in the Actions column. Associate an ApsaraDB MyBase host with a bastion host
    5. Click Import Host. On the dialog box that appears, select the ApsaraDB MyBase host that you want to import and click Import.
  3. Create a host account.
    1. Find the ApsaraDB MyBase 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.
      ss
      Parameter Description
      Username The username must start with a lowercase letter and end with a letter or a digit.
      • The username can contain lowercase letters, digits, and underscores (_).
      • The username must be 2 to 16 characters in length.
      • The username cannot be root, admin, or another username that is reserved by the system.
      Account Type If SQL Server is selected as the engine, you can select one of the following account types:
      • Normal Account
      • Administrator
      Note For more information about host permissions, see Host permissions.
      Password Enter a password for the account. The password must meet the following requirements:
      • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
      • The password must be 6 to 32 characters in length.
      • The password can contain the following special characters: ! @ # $ % ^ & * ( ) _ + - =
    3. Click Create.
      Note After you create a host account, you can modify or delete the host account in the Bastionhost console. For more information about how to modify or delete a host account, see Configure account information for a host.

What to do next

After the host account is created, you can access the host. For more information, see Log on to a host by using a bastion host in Linux.