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.
- Log on to your bastion host. For more information, see Log on to the console of a bastion host.
- In the left-side navigation pane, choose .
- On the Hosts page, click Import ECS Instances.
- In the Select Region dialog box, select the region where the ECS instances you want to import reside and click OK.
- 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
- Log on to your bastion host. For more information, see Log on to the console of a bastion host.
- In the left-side navigation pane, choose .
- On the Hosts page, create an account for a host.
- Create an account for a host
- Find the host for which you want to create an account and click Create Host Account in the Actions column.
- In the Create Host Account panel, configure the parameters such as Protocol, Logon Name, and Authentication Type.
- Optional:Click Verify.
You can click Verify to check whether the username and password that you specified for the account are valid.
- Click Create.
- Create accounts for multiple hosts
- Select the hosts for which you want to create accounts.
- In the lower part of the page, choose
- 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.
- In the lower-part of the panel, click OK.
- Create an account for a host