View, connect to, register, and deregister managed instances with Alibaba Cloud Client.
Prerequisites
-
Accounts are added to Alibaba Cloud Client.
-
Session Manager connects to managed instances over SSH. Both Alibaba Cloud accounts and RAM users can use Session Manager, but only Alibaba Cloud accounts can enable it.
-
If Session Manager is not enabled, use an Alibaba Cloud account to enable it. See Connect to an instance by using Session Manager.
-
To use Session Manager as a RAM user, attach a policy that grants the StartTerminalSession permission. For policy examples, see Connect to an instance by using Session Manager. Attach policies to RAM users with caution to prevent unintended operations.
ImportantIf these prerequisites are not met, Start Session Manager is unavailable in the Actions column on the Instances page.
-
View managed instances
-
On the homepage of Alibaba Cloud Client, click Managed Instance.
-
On the Managed Instance page, view managed instance information.
-
①: Region selector. Click to switch regions.
-
②: Managed instance list.
-
③: Pagination toolbar.
-
④: Search box.
-
Enter a managed instance ID or name.
-
Press Enter to search in the current region.
-
-
⑤: Actions menu, including:
-
Connect to a managed instance
-
Deregister a managed instance
-
View the details of a managed instance
-
-
⑥: Register New Instances button.
-
Connect to a managed instance
Connect to a managed instance over SSH
-
On the homepage of Alibaba Cloud Client, click Managed Instance.
-
At the top of the managed instance list, select the target region.
-
Find the target instance. In the Actions column, choose
-
Specify Username. Default value: root. Specify Port Num. Default value: 22. Set Certifier.
Valid values of Certifier:
-
Password: The instance password.
-
KeyPair: An SSH private key file from ~/.ssh/ or another local directory.
-
Temp KeyPair: A temporary key pair sent to the instance, valid for 1 minute. No password or key file management required.
-
-
Click Connect.
Connect to a managed instance by using Session Manager
Use Session Manager provided by Cloud Assistant to connect to an ECS instance in these scenarios:
-
No password is configured for the instance.
-
No public IP address is assigned to the instance.
-
The SSH or RDP port cannot be opened for the instance.
-
On the homepage of Alibaba Cloud Client, click Managed Instance.
-
At the top of the managed instance list, select the target region.
-
Find the target instance. In the Actions column, choose
The default username is ecs-assist-user.
Deregister a managed instance
Deregistering an instance removes it from both the Alibaba Cloud Client managed instance list and the Managed Instances tab in the ECS console.
-
On the homepage of Alibaba Cloud Client, click Managed Instance.
-
At the top of the managed instance list, select the target region.
-
Find the target instance. In the Actions column, choose .
-
Click Deregister Instance.
View the properties of a managed instance
-
On the homepage of Alibaba Cloud Client, click Managed Instance.
-
At the top of the managed instance list, select the target region.
-
Find the target instance. In the Actions column, choose .
Properties include the instance name, hostname, operating system, and Cloud Assistant status.
Register a new managed instance
Create a registration code and generate a script to install Cloud Assistant Agent and register a new instance.
-
On the homepage of Alibaba Cloud Client, click Managed Instance.
-
At the top of the managed instance list, select the target region.
-
On the top of the managed instance list, click Register New Instances.
-
In the Register New Instances dialog box:
-
Configure the following parameters to create a registration code:
-
Instance Name Prefix: A name prefix for managed instances.
-
Instances Quota: The number of managed instances. Valid values: 1 to 1000. Default value: 10.
-
Validity Period: The validity period of the registration code. Unit: hours. The code becomes invalid after expiration. Default value: 4.
-
Source IP Address: An IP address or CIDR block to restrict which servers can register.
-
If you specify a public IP address, only the server with that IP address can register. If you specify a CIDR block, only servers within that range can register.
-
If not specified, all servers can register.
-
-
-
Click Next.
-
Select the operating system tab, copy the generated script, and click Done.
Use this script to install Cloud Assistant Agent on the servers and register them as managed instances. See Alibaba Cloud managed instances.
-
References
-
Cloud Assistant allows password-free, logon-free management of managed instances. See Alibaba Cloud managed instances.
-
Alibaba Cloud Client also manages ECS instances, elastic container instances, and simple application servers.
-
Configure Alibaba Cloud Client settings such as shortcut keys, language, and color theme. See Alibaba Cloud Client configuration.