Workbench is a browser-based remote connection tool provided by Alibaba Cloud. You can use Workbench to connect to Linux instances without a password. Workbench also supports connections to instances that do not have public IP addresses.
Limits
Instance status: The instance must be in the Running status, and its Health Status must be Normal.
RAM permissions: If you are a Resource Access Management (RAM) user, contact your Alibaba Cloud account owner or an administrator to create a service-linked role and grant the required permissions to your RAM user.
Instance security group restrictions: Before you connect to the instance, follow the UI prompts to allow Workbench service-related IP addresses to access the instance. You can do this with a single click.
Maximum session duration: A Workbench remote connection session has a maximum duration of 6 hours. After this period, the connection automatically disconnects and you must reconnect to the instance.
The maximum session duration is also affected by external factors such as browsers. We recommend that you run long tasks in the background.
Method 1: Use a password-free connection (Recommended)
By default, password-free connections use Session Manager. If Session Manager is not enabled, a temporary SSH key pair is used instead.
Log on to the ECS console - Instances. At the top of the page, select a resource group and a region.
Find the target instance and click Remote Connection. In the dialog box that appears, click Log On Now for Connect Via Workbench.
On the Log On To Instance page of Workbench, select Password-free Logon, enter a Username, and then click Log On.
The following figure shows a successful logon:

Method 2: Use a terminal connection (SSH)
Log on to the ECS console - Instances. At the top of the page, select a resource group and a region.
Find the target instance and click Remote Connection. In the dialog box that appears, click Log On Now for Connect Via Workbench.
On the Log On To Instance page of Workbench, complete the following configurations and then click Log On.
Configuration item
Description
Instance
The information about the current instance is automatically filled in.
Connection Method
Select Terminal Connection. This method uses the Secure Shell (SSH) protocol to connect to the instance.
Network Connectivity
Select the Private IP address of the instance.
Authentication Method
ImportantSSH key authentication provides higher security than password authentication. We recommend that you attach a key pair and then use SSH key authentication to log on.
SSH key authentication
Username: The default username for a Linux instance is root.
If you set the logon name to ecs-user when you created the instance, enter ecs-user.
Private Key: Enter the content of the private key file. If the private key file is protected by a security token, you must also enter the Key Passphrase.
Password authentication
Username: The default username for a Linux instance is root.
If you set the logon name to ecs-user when you created the instance, enter ecs-user.
Password: If you forgot the password or have not set one, you must first reset the password.
The following figure shows a successful logon.

More features
Set the destination SSH port
Use credential authentication
FAQ
How does Workbench connect to an instance over a private network?
When you connect to an instance in Workbench using its private IP address, a reverse access rule is automatically created in the instance's VPC. This rule establishes a secure, bidirectional communication channel. To view or manage the rule, click in the top menu bar.
What is the default or initial logon name for an instance?
The default username for a Linux instance is root. If you selected ecs-user when you created the instance, use ecs-user as the username.
What is the default or initial password for an instance?
Instances do not have a default or initial password. To set a password, you can reset the password.
Troubleshoot remote connection failures
If you cannot remotely connect to an instance, you can first use the self-service diagnostic tool to troubleshoot the issue. For manual troubleshooting, see Troubleshoot connection issues for Linux instances.




