All Products
Search
Document Center

:Step 1: Import ECS instances and manage the accounts of ECS instances

Last Updated:Apr 21, 2026

To perform O&M operations on assets by using a bastion host, you must add the assets and asset accounts to be managed to the bastion host as an administrator. You can add multiple types of assets to a bastion host. This topic describes how to import Elastic Compute Service (ECS) instances within an Alibaba Cloud account to a bastion host and create host accounts for the ECS instances as an administrator.

Prerequisites

Procedure

Import ECS instances

  1. Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.

  2. In the list of Bastionhost instances, find the target instance and click Manage.

  3. In the navigation pane on the left, choose Assets > Hosts.

  4. On the Hosts page, click Import ECS Instances.

  5. In the Select Region dialog box, select the region where the ECS instances that you want to import are located, and then click OK.

  6. In the Import ECS Instances dialog box, select the ECS instances that you want to import, and then click Import.

Manage the accounts of ECS instances

After you import ECS instances to the bastion host, you can create host accounts for the ECS instances. This way, you can use the bastion host to manage the existing accounts of the ECS instances.

  1. In the navigation pane on the left, choose Assets > Hosts.

  2. On the Hosts page, find the imported ECS instance, and in the Actions column, click Create Host Account.

  3. On the Create Host Account page, configure the logon parameters for the ECS instance, and then click Create.

    Parameter

    Description

    Protocol

    The default protocol for Linux is SSH. The default protocol for Windows is Remote Desktop Protocol (RDP).

    Logon Name

    The username of the account that is used to log on to the ECS instance.

    Authentication Type

    Select Password.

    Note
    • If you use a key pair to log on to the ECS instance, select Private Key. You must then enter the corresponding private key.

    • If you select Shared Key, you can specify a key and associate the key with multiple host accounts at a time. This enables more efficient host account management. For more information, see Use the shared key feature.

    Password

    The password of the account that is used to log on to the ECS instance.

    You can click Verify to test if the username and password for the host account are correct. For solutions to verification errors, see What do I do if an error occurs when I verify the credentials of a new host account in Bastionhost?

    Enable Only SFTP Permission

    By default, this parameter is disabled.

    If you enable this parameter, SSH-based logon is disabled for the account.

    Note

    Bastionhost allows you to create an account for multiple hosts at a time. For more information, see Manage a host account.

What to do next

After assets are imported to the bastion host, you must add users to the bastion host as an administrator. For more information, see Step 2: Import RAM users.