Manage hosts

Updated at:

This topic describes how to search for a host in the host list, modify the basic information of a host, and delete a host.

Prerequisites

A host that you want to manage is created in your Bastionhost instance. For more information, see Add hosts.

Search for a host

  1. Log on to the Bastionhost system. For more information, see Log on to the system.

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

  3. On the Hosts page, specify search conditions to search for the host that you want to manage.

    Item

    Description

    Hostname

    The name of the host.

    Note
    • You can modify the host name of a host whose source is Local or a third-party asset source.

    • To modify the host name of an Elastic Compute Service instance, you must log on to the ECS console. Bastionhost automatically synchronizes the instance name as the host name. For more information, see Modify instance attributes.

    Host IP Address

    The O&M IP address that is used to connect to the destination server through Bastionhost. The IP address can be a public IP address or an internal IP address.

    Note

    To modify the O&M IP address, see Modify a host's O&M IP address.

    Remarks

    The additional description of the host.

    Note
    • You can modify the remarks of a host whose source is Local or a third-party asset source.

    • To modify the remarks of an Elastic Compute Service instance, you must log on to the ECS console. Bastionhost automatically synchronizes the instance description as the remarks. For more information, see Modify instance attributes. To view the synchronization result immediately, go to the Assets > Hosts page and click Check ECS Instance Status to trigger the synchronization manually. After the synchronization is complete, click the host name of the destination host, and then view the Remarks field on the Basic Info tab.

    Account Count

    The number of host accounts that the current host has.

    Network Domain

    The network domain that Bastionhost uses to connect to the host.

    Operating System

    The operating system type of the host. Valid values: Linux and Windows.

    Host Source

    The source from which the host is imported. Valid values: ECS, Local, and third-party asset sources.

    Bastion Host Status

    The status of the ECS instance or the host from a third-party asset source. Valid values: Normal and Released.

    The asset status is automatically checked every 4 hours. After an asset is imported, the asset status is updated at the next automatic check. You can click Check ECS Instance Status in the upper-right corner of the list to check the asset status immediately.

    Network Status

    The network connectivity between Bastionhost and the port of the host. Valid values: Normal, Port Exception, Network Timeout, and Proxy Server Exception.

    The asset network status is automatically checked based on the asset connectivity check cycle that is configured in network diagnostics. After an asset is imported, the asset network status is updated at the next automatic check. You can click Check Network Status of Asset in the upper-right corner of the list to check the asset network status immediately.

    Note

    To configure periodic asset connectivity checks, see Diagnose network issues.

    Risk Status

    If your assets are connected to Security Center, you can view the risk monitoring results of Security Center, including the status and number of alerts, vulnerabilities, and baseline risks. You can also quickly go to Security Center to handle the risks. For more information, see Manage servers.

Modify the basic information of a host

You can modify the basic information only of hosts that are manually created or imported from a file. You cannot modify the basic information of imported ECS instances. To modify the basic information of an ECS instance, see Modify instance attributes.

  1. Log on to the Bastionhost system. For more information, see Log on to the system.

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

  3. On the Hosts page, find the host that you want to modify and click the host name.

  4. On the Basic Info tab of the panel of the destination host, modify the basic information such as the host IP address and host name, and then click Update.

Delete a host

If you no longer need to maintain a host, you can delete the host from the host list of Bastionhost.

Warning

After you delete the host, all permissions that are associated with the host are also deleted. For example, if a user is granted permissions on the host, the permissions are deleted together with the host. You can no longer use Bastionhost to log on to the host.

  1. Log on to the Bastionhost system. For more information, see Log on to the system.

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

  3. On the Hosts page, delete hosts.

    • Delete a single host: Find the host that you want to delete and click Delete in the Actions column. Alternatively, you can click Delete below the host list.

    • Delete multiple hosts: Select the hosts that you want to delete and click Delete below the host list.

  4. In the Are you sure you want to delete the selected hosts? dialog box, click Delete.

FAQ

What do I do if SSH logon fails with the INVALID_USER error, or if logon with an account and password fails after I add an ECS instance?

If the message INVALID_USER Incorrect username or password appears when you use Bastionhost to log on to a destination host over SSH, the authentication information does not match. Perform the following steps to troubleshoot the issue:

  1. Confirm whether you are using a Bastionhost account or a backend server account. The logon account of Bastionhost and the system account of the backend server (ECS instance) are two different concepts. When you use Bastionhost to log on to a host, you must use a host account that is configured in Bastionhost, instead of using the system account of the ECS instance directly in your SSH client.

  2. Make sure that the password configured in the Bastionhost console is the same as the actual account password in the ECS instance. Check whether the password that is configured for the Host Account in the Bastionhost console matches the actual password of the user in the operating system of the destination server, and whether the user and the password exist in the operating system of the server.

  3. If you forget the password, you can reset it in one of the following ways:

    • An administrator can modify the password of a local user in the Bastionhost console.

    • A RAM user can reset the password in the RAM console.

    • O&M engineers can log on to Bastionhost and modify the passwords of their host accounts.

  4. Verify that the password is configured correctly. In the Bastionhost console, find the host account and click Verify to check whether the password is configured correctly.