Connect to assets by using SSH

Updated at:

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

Connect from the terminal command line

  1. Open a command-line terminal.

  2. Run the PAM O&M command ssh <PAM username>%<Alibaba Cloud account ID>@<PAM O&M address> -p 60022 and 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:
  3. 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-20240205

    The menu options and the column group headers on this page are displayed in Chinese:

    • 1 搜索: search for an asset. 2 帮助: view help.

    • 资产组: asset group. 资产: asset. 凭据: credential.

    Press the uppercase H key for help and to see a list of available actions.

Connect by using password authentication

  1. 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.

  2. 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*********.

  3. 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.