All Products
Search
Document Center

Bastionhost:Add hosts

Last Updated:Jan 15, 2024

This topic describes how to import hosts to a bastion host. You can import Alibaba Cloud Elastic Compute Service (ECS) instances to a bastion host. You can also import hosts from other sources to a bastion host. After you import or add hosts to a bastion host, the O&M personnel can use the bastion host to manage the hosts.

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 the console of a 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.

Import hosts from other sources

You can manually specify host information to import a host on which you want to perform O&M operations to a bastion host.

  1. Log on to the console of a 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. Select Create Host from the Import Other Hosts drop-down list.

  4. In the Create Host panel, configure the Operation System, Host IP Address, and Hostname parameters. Then, click Create.

Import hosts from an ApsaraDB MyBase dedicated cluster

You can import hosts from a dedicated cluster to a bastion host at a time.

Note
  1. Log on to the console of a 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. Select Import Host From Dedicated Cluster from the Import Other Hosts drop-down list.

  4. In the Import Host From Dedicated Cluster dialog box, select the hosts that you want to import and click Import.

Import hosts by using a template file

The template package that you download contains template files in the XLS, CSV, and XLSX formats. You can use one of the template files to import hosts to a bastion host at a time.

  1. Log on to the console of a 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. Select Import Hosts from File from the Import Other Hosts drop-down list.

  4. In the Import Hosts panel, click Download Host Template to download the template package. Decompress the packet, open a template file, and then enter information about the hosts that you want to import based on the requirements of the template file. Then, save the changes to the file.

  5. In the Import Hosts panel, click Upload to upload the template file that you saved.

  6. In the Preview dialog box, select the hosts that you want to import and click Import.

  7. In the Import Hosts panel, confirm the host information and click Import Hosts.

Import a host from a third-party asset source

You can import a host from a third-party asset source by using the access credentials and the API that is provided by the third-party asset source. Before you import a host from a third-party asset source to a bastion host, make sure that you add the third-party asset source to the bastion host. For more information, see Manage third-party asset sources.

  1. Log on to the console of a 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. In the Import Other Hosts drop-down list, select the name of the third-party asset source whose host you want to import.

  4. In the Import Third-party Hosts dialog box, select the host that you want to import and click Import.

Related operations

  • After you import hosts to a bastion host, you must create accounts for the hosts. For more information, see Manage a host account.

  • If you do not use the default port for the RDP or SSH protocol on a host, you must change the default port to the port that is used by the host in a bastion host. For more information, see Change the service port of a host.