Bastionhost allows you to manage hosts from various sources, such as Alibaba Cloud ECS instances, on-premises servers, and servers from other cloud providers. Before you perform O&M on a host, you must add it to your Bastionhost instance. This topic describes how to add hosts.
Import ECS instances from the current account
You can bulk import ECS instances from your current Alibaba Cloud account into Bastionhost. Before you begin, ensure you have already created the ECS instances that you want to import. For more information, see Create an instance on the Custom Launch tab.
This operation does not affect previously imported ECS instances.
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the list of Bastionhost instances, find the target instance and click Manage.
In the navigation pane on the left, choose .
On the Hosts page, choose .
In the Select Region dialog box, select the region where the ECS instances are located and click Next.
In the Import ECS Instances dialog box, select the ECS instances that you want to import and click Import.
Import ECS instances from member accounts
Bastionhost supports centralized management of assets across multiple accounts. To centrally manage assets from multiple Alibaba Cloud accounts in a single Bastionhost instance, use Alibaba Cloud Resource Directory. You must add a member account to your Bastionhost instance before you can import its ECS instances. For more information, see Multi-account management.
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the list of Bastionhost instances, find the target instance and click Manage.
In the navigation pane on the left, choose .
On the Hosts page, choose .
On the Select Alibaba Cloud Account page, select the target Alibaba Cloud account and click Next.
On the Select Region page, select the region where the ECS instances are located and click Next.
In the Import ECS Instances dialog box, select the ECS instances that you want to import and click Import.
Import hosts from other sources
Create a host
You can manually add a host for O&M by entering its information into Bastionhost.
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the list of Bastionhost instances, find the target instance and click Manage.
In the navigation pane on the left, choose .
On the Hosts page, choose .
In the Create Host panel, enter the host's information, such as the operating system, host IP address, and hostname, and then click Create.
Parameter
Description
Operating System
Select the host's operating system. Valid options are Linux and Windows.
Host IP Address
Enter the host's IP address or domain name. IPv4 addresses and domain names are supported, for example, 192.168.XX.XX or www.example.com.
Hostname
A custom name for the host. The name must meet the following requirements:
It must be 1 to 128 characters in length.
It cannot start with a special character.
It can contain only periods (.), underscores (_), hyphens (-), and spaces.
Network Domain
Select a network domain. The default value is Direct Network (Direct Connection), which means the Bastionhost instance connects directly to the host without a proxy server. If the host is not directly reachable, use a proxy server to forward network requests for O&M. For information about how to create a network domain, see Network domains.
Asset Group
Select an asset group. Asset groups allow you to categorize hosts based on your business needs, enabling batch operations. For information about how to create an asset group, see Manage asset groups.
Remarks
Enter optional remarks to help identify the host.
Import hosts from a file
You can import hosts in batches by using a file. Host templates are available in .xls, .csv, and .xlsx formats.
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the list of Bastionhost instances, find the target instance and click Manage.
In the navigation pane on the left, choose .
Choose Import Other Hosts > Import Hosts from File.
In the Import Hosts panel, click Download Host Template to download a template. Fill in the host information according to the template's format, and then save the file.
In the Import Hosts panel, click Upload and select the template file that contains the host information.
In the Preview dialog box, select the hosts that you want to import and click Import.
In the Import Hosts panel, confirm the host information and then click Import Hosts.
Import from third-party asset sources
Before importing from a third-party asset source, such as Tencent Cloud, Huawei Cloud, or Amazon Web Services (AWS), you must first configure its access credentials in Bastionhost. For more information, see Manage third-party asset sources.
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the list of Bastionhost instances, find the target instance and click Manage.
In the navigation pane on the left, choose .
On the Hosts page, click Import Other Hosts and select the name of the third-party asset source.
In the Import Third-party Hosts dialog box, select the hosts that you want to import and click Import.
Next steps
After adding a host, you must add a corresponding host account. For more information, see Manage host accounts.
If the O&M protocol (RDP or SSH) on the target host uses a non-default port, you must change the service port. For more information, see Change the service port of a host.
To manage the added hosts, see Manage hosts.