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 from other sources.

Import ECS instances

To import ECS instances in your Alibaba Cloud account to Bastionhost, perform the following steps. This operation does not affect the current status of the ECS instances in your Alibaba Cloud account.

  1. Log on to your bastion host. For more information, see Log on to 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 to be imported reside and click OK.
    Select Region dialog box
  5. In the Import ECS Instances dialog box, select the ECS instances that you want to import and click Import.
    Import ECS Instances dialog box

Procedure

  1. Log on to your bastion host. For more information, see Log on to 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. Click Verify.

        You can click Verify to check whether the username and password that you specify 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. Click OK.