Before Bastionhost users can perform O&M operations on hosts, the administrator must add host assets to be managed to a Bastionhost instance and add accounts to the hosts. This topic describes how to import ECS instances under the current Alibaba Cloud account to a Bastionhost instance and add accounts to hosts.

Background information

You can also manually add hosts, import hosts from a file, or import dedicated host groups of ApsaraDB for RDS. For the relevant information, see Import hosts from other sources.

Import ECS instances

Follow these steps to import ECS instances under your Alibaba Cloud account to Bastionhost. This operation does not affect the current status of the ECS instances under your Alibaba Cloud account.

  1. Find your bastion host and click Manage. For more information, see Log on to Bastionhost.
  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
  5. In the Import ECS Instances dialog box, select the ECS instances to be imported and click Import.
    Import ECS instances

Procedure

Note Creating an account for hosts is to add an account in your host system to Bastionhost. O&M personnel can use the account to log on to the target host in Bastionhost. A host account that is created in Bastionhost will not be automatically synchronized to your host system.
  1. Find your bastion host and click Manage. For more information, see Log on to Bastionhost.
  2. In the left-side navigation pane, choose Assets > Hosts.
  3. On the Hosts page, find the target host and click the hostname.
  4. In the pane that appears, click the Host Account tab.
  5. Click Create Host Account.Create an account for a single host (1)
    To create an account for multiple hosts at a time, select the hosts on the Hosts page and select Create Account for Hosts from the Batch drop-down list in the lower-left corner. Create an account for multiple hosts (1)
  6. In the Create Host Account pane, specify Protocol, Logon Name, and Password.
    Create an account for a single host (2)
    If you create an account for multiple hosts at a time, specify Authentication Type, Protocol, Logon Name, and Password in the Create Account for Hosts dialog box. Create an account for multiple hosts (2)
  7. Optional:Click Verify.
    The purpose is to check whether the logon name and password are valid.
    Note When you create an account for multiple hosts at a time, you do not need to perform the verification.
  8. Click Create.
    Note Click OK when you create an account for multiple hosts at a time.