All Products
Search
Document Center

Elastic GPU Service:Connect to a Linux instance using Workbench

Last Updated:Apr 01, 2026

Workbench is a browser-based SSH tool that lets you connect to an Elastic Compute Service (ECS) instance without installing any local software. Use Workbench when you need a zero-setup SSH connection from any browser, using the public or private IP address of your instance.

Workbench is one of several ways to connect to a Linux instance. For alternatives—such as a local SSH client—see Connect to a Linux instance.

Prerequisites

Before you begin, make sure you have:

  • An ECS instance in the Running state

  • Workbench permissions granted by your Alibaba Cloud account owner or administrator. If you encounter permission issues, see the Workbench service-linked role section in "Connect to an instance through Workbench"

  • Security group rules configured to allow Workbench IP addresses to access the instance. Rules differ by network type. See the Security group settings related to Workbench section in "Connect to an instance through Workbench." If no security group is assigned, you can specify one directly in the Instance Login dialog box

  • (Required for temporary SSH key-based authentication only) Cloud Assistant Agent installed on the instance. See Install Cloud Assistant Agent

Session behavior

A Workbench session lasts up to 6 hours. If no operation is performed for more than 6 hours, the session closes and you must reconnect.

Choose an authentication method

Workbench supports four authentication methods. Choose the one that fits your setup.

MethodWhen to useWhat you need
Password-basedQuick access with a username and passwordUsername (e.g., root or ecs-user) and logon password
SSH key authenticationInstance has an SSH key pair bound to itUsername and the private key content; passphrase if the key is protected
Credential-basedFrequent connections to the same instanceA saved credential (username + password or username + key pair)
Temporary SSH key-basedPasswordless, short-lived accessUsername (default: root); Cloud Assistant Agent must be installed
If your instance has an SSH key pair bound to it, use SSH key authentication instead of password-based authentication.

Connect to an instance

The following steps use an ECS instance running Alibaba Cloud Linux 3 as an example. By default, port 22 is used for the SSH connection. To use a different port, see Specify the SSH port.

  1. Go to ECS consoleECS console - Instance.

  2. In the top navigation bar, select the region and resource group of the instance.

    Region selector

  3. Click the ID of the instance you want to connect to. On the Instance Details page, click Connect in the upper-right corner.

  4. In the Remote connection dialog box, click Sign in now in the Workbench section.

  5. In the Instance Login dialog box, configure the following parameters.

    ParameterDescription
    InstanceAutomatically populated with the current instance. Enter a different IP address or instance name to connect to another instance.
    ConnectionFor a virtual private cloud (VPC) instance: use the public or private IP address. For a classic network instance with a public IP assigned: use the public IP only. For a classic network instance without a public IP: use the internal IP address.
    AuthenticationSelect an authentication method. Enter the required credentials based on your selection.
  6. Click OK.

A successful connection opens a terminal in your browser.

Connected terminal

If the connection fails, see Troubleshooting.

Specify the SSH port

To use a port other than 22, click More Options in the Instance Login dialog box.

More Options - step 1More Options - step 2

Create a credential for credential-based authentication

Credential-based authentication lets you save a username + password or username + key pair as a reusable credential, so you don't need to enter credentials on each connection. You cannot share the credential with other accounts. Only the credential creator can use the credential to connect to the instance.

  1. In the Instance Login dialog box, set Connection to a public or private IP address, then select Credential-based for Authentication.

  2. Click Create Credential in the Credential field to open the Add Credential dialog box.

    Add Credential dialog box
  3. In the Add Credential dialog box, fill in the following fields. For other fields, follow the on-screen instructions.

    ParameterDescription
    UsernameThe logon username
    Credential typeSelect Password or Private Key
    PasswordThe logon password for the username
    Private keyThe private key content for the username
    Passphrase for private keyRequired if the private key is protected by a passphrase
  4. Click OK. | Credential created

How temporary SSH key-based authentication works

Temporary SSH key-based authentication uses Cloud Assistant common commands to establish a short-lived, passwordless SSH session.

  1. When you initiate a connection, Workbench generates a temporary SSH key pair with a 1-minute validity period.

  2. Cloud Assistant calls the InvokeCommand operation to run ACS-ECS-EnableSshPublicKey-linux.sh and ACS-ECS-SendSshPublicKey-linux.sh, which send the public key to the target instance via Cloud Assistant Agent.

  3. Workbench uses the temporary key pair to connect to the instance over SSH.

Workbench does not store the temporary SSH key pair. When the temporary SSH key pair expires 1 minute after being generated, you must reuse Workbench to generate another temporary SSH key pair to maintain the logon connection.

Troubleshooting

If you cannot connect to a Linux instance, see SSH connection issues.