Connect to assets by using SSH
You can perform O&M on your assets by connecting to PAM through a terminal command line or a remote connection client. After you establish a connection, you can select an asset to manage. This topic describes how to connect to PAM assets by using an SSH client.
Prerequisites
-
Only the Lightweight Edition supports O&M through a remote connection client. To learn how to upgrade your PAM instance, see Upgrade an instance.
Ensure you have installed a PAM-supported remote connection client, such as Xshell, SecureCRT, or PuTTY. For details about compatible clients and versions, see Client remote connection tools and version notes.
-
You have added assets to PAM and granted a PAM user the required permissions on them. For more information, see Host Management and User Management.
-
You have the PAM O&M address. For more information, see Configure private network O&M access or Configure public network O&M access.
Connect from the terminal command line
-
Open a command-line terminal.
-
Run the PAM O&M command
ssh <PAM username>%<Alibaba Cloud account ID>@<PAM O&M address> -p 60022and press Enter.ssh <PAM username>%<Alibaba Cloud account ID>@<PAM O&M address> -p 60022 <PAM username>%<Alibaba Cloud account ID>@<PAM O&M address>'s password: -
On the PAM asset management page, use the Up and Down arrow keys to select the host you want to manage and press Enter. This logs you on to the target host to perform O&M.
1 搜索 2 帮助H 资产组 资产 凭据 Row Name Row Name IP Port Group Comment Row Name 1 quxxxx 1 1-uf65cx9wsor95jl4gerk 192.16xxx.xxx7 22 quxxxx n qgb-01-doc-linux-20240205 1 root 2 defaxxxxxxoup 2 1-uf62a598l1bd0pkxsm5x 192.16xxx.xxx5 22 quxxxx n qgb-02-doc-linux-20240205The menu options and the column group headers on this page are displayed in Chinese:
-
资产组: asset group.资产: asset.凭据: credential.
Press the uppercase H key for help and to see a list of available actions.
-
Connect by using password authentication
-
Open Xshell. In the Connection settings, enter the PAM O&M address and SSH port. The port is 60022 by default and cannot currently be changed.
If you use SecureCRT, in the New Session Properties dialog box, go to the Connection category and configure the following parameters: set Name to PAM, select SSH for Protocol, enter the PAM O&M address for Host, and enter 60022 for Port.
-
In the User Authentication settings, enter your PAM username and password, and then click OK.
The PAM username must include the Alibaba Cloud account ID (UID) in the format
<username>%<UID>, for example,zhangsan%1417289*********. -
On the PAM asset management page, use the Up and Down arrow keys to select the host you want to manage and press Enter. This logs you on to the target host to perform O&M.
Press the uppercase H key for help and to see a list of available actions.