This topic describes how to use an SSH tool to log on to a bastion host and access a host on which you want to perform O&M operations. A command-line tool is used as an example.
Prerequisites
O&M addresses of the bastion host are obtained. You can obtain the O&M addresses in the Bastion Host Information section of the Overview page in the console of the bastion host. For more information, see Log on to the console of a bastion host.
Bastionhost provides fixed O&M addresses and supports dynamic O&M IP addresses to ensure security. The IP address to which the private O&M address of a bastion host is resolved may change. We recommend that you perform O&M operations by using an O&M address. This helps prevent unavailable O&M due to the IP address change.
Procedure
Start the command-line tool.
Enter
ssh <Username of the bastion host>@<O&M address of the bastion host> -p60022
and press Enter.Enter the password of a RAM user and press Enter.
Optional: If multi-factor authentication (MFA) is enabled for the RAM user, enter the verification code obtained from the bound MFA device (the Alibaba Cloud app) and press Enter.
On the asset management page that appears, select the host for which you want to perform O&M operations by pressing the upward or downward arrow key, and press Enter to access the target host for O&M.
You can use one of the following methods to search for specific assets:
Enter
/Keyword
. The search results are highlighted, as shown in the following figure.Use the search feature provided by Bastionhost to filter specific assets by keyword.
For example, if you want to filter assets by keyword key, you can click [Search] to go to the [Search] page. Then, enter ls Key and press the Enter key. The assets that contain the filter condition key are automatically displayed, as shown in the following figure.
NoteFor more information about the [Search] command, enter
help
orhelp ls
.