Before Bastionhost users can perform O&M operations on hosts, an administrator must add hosts to be managed to a bastion host and add accounts to the hosts. This topic describes how to import Elastic Compute Service (ECS) instances that belong to the current Alibaba Cloud account to a bastion host and add accounts to the hosts.

Background information

You can also manually add hosts, import hosts by using a file, or import dedicated host groups of ApsaraDB RDS. For more information, see Import hosts by using a template file.

Import ECS instances

You can perform the following steps to import ECS instances that belong to your Alibaba Cloud account to a bastion host at a time. Before you import ECS instances to a bastion host, make sure that you created ECS instances. For more information, see Connection methods.

Note This operation does not affect the current status of the imported ECS instances.
  1. Log on to your bastion host. For more information, see Log on to the console of a bastion host.
  2. In the left-side navigation pane, choose Assets > Hosts.
  3. On the Hosts page, click Import ECS Instances.
  4. In the Select Region dialog box, select the region where the ECS instances you want to import reside and click OK.
  5. In the Import ECS Instances dialog box, select the ECS instances that you want to import and click Import.

Create an account for a host

  1. Log on to your bastion host. For more information, see Log on to the console of a bastion host.
  2. In the left-side navigation pane, choose Assets > Hosts.
  3. On the Hosts page, create an account for a host.
    • Create an account for a host
      1. Find the host for which you want to create an account and click Create Host Account in the Actions column.
      2. In the Create Host Account panel, configure the parameters such as Protocol, Logon Name, and Authentication Type. Create an account for a host
      3. Optional:Click Verify.

        You can click Verify to check whether the username and password that you specified for the account are valid.

      4. Click Create.
    • Create accounts for multiple hosts
      1. Select the hosts for which you want to create accounts.
      2. In the lower part of the page, choose Batch > Host Account > Add Account. Create an account
      3. In the Add Account dialog box, configure the parameters such as Authentication Type, Protocol, and Logon Name.
        Note When you create accounts for multiple hosts at a time, you do not need to verify the password.
      4. In the lower-part of the panel, click OK.