ENS supports multiple methods to connect to instances, including SSH, VNC, SSH key pairs, and Workbench. Choose a method based on the operating system and your requirements.
Prerequisites
-
For SSH connections, the instance security group allows inbound traffic on port 22.
-
You have the administrator account and password. If forgotten, reset the password.
Connect using a public IP address
-
Log on to the ENS console.
-
In the left-side navigation pane, choose Resources and Images > Instances.
-
In the Actions column of the target instance, click Details.
-
On the instance details page, click View Configurations to get the public IP address of the instance.
-
Use a remote connection tool to connect. The following example uses PuTTY on Windows to connect to a Linux instance.
-
Download and install PuTTY.
-
Start PuTTY.
-
Configure the settings to connect to the Linux instance.
-
Host Name (or IP address): Enter the public IP address of the edge instance.
-
Port: Enter 22.
-
Connection Type: Select SSH.
-
Saved Sessions: (Optional) Enter a session name and click Save to store the connection for reuse.
-
-
Click Open.
On first connection, PuTTY displays a security alert. Click Yes to accept the server's certificate and save it to the local registry.
-
Enter your username and password when prompted.
-
Connect using VNC
-
If remote tools cannot connect, use VNC to log on and check the operating system status.
-
VNC sessions time out after 300 seconds of inactivity. Reconnect if disconnected.
-
Log on to the ENS console.
-
In the left-side navigation pane, choose Resources and Images > Instances.
-
In the Actions column of the target instance, click Remote Logon.
-
In the Remote Logon dialog box, click Log On Now.
-
Log on to the operating system.
Linux instances
-
Enter a username (for example, root or ecs-user), and then press
Enter. -
Enter the password for the instance, and then press
Enter.NoteThe password is not displayed as you type. Ensure you enter it correctly.
Linux supports up to 10 VNC terminals (default: CTRL+ALT+F1). To switch terminals, click in the upper-left corner.
Windows instances
-
In the upper-left corner of the page, click .
-
Select a user account (the default is Administrator), enter the instance password, and press Enter.
-
To copy long text (such as a download URL) from your local device to the instance, use Copy Command Input.
-
Log on to the instance via VNC.
-
In the upper-left corner of the interface, click Copy Command Input.
-
In the Text Content dialog box, enter the text to copy and click OK.
FAQ
Linux connection issues
VNC black screen
Console VNC is inaccessible
Connect using an SSH key pair
-
SSH key pairs use public-private key cryptography for password-free remote logon to Linux instances. This method suits automated operations such as server configuration and application deployment.
-
To use key pair authentication: create a key pair, attach it to the instance, then connect with the private key.
Limitations
-
The maximum length of a key pair is 1,024 bytes.
-
This feature is supported only for Linux instances.
-
Only instances of the x86 compute, heterogeneous virtual machine, and ARM compute types are supported.
-
Key pair authentication disables password-based logon for the instance.
-
Only one key pair can be attached per instance. Attaching a new key pair replaces the existing one.
Create a key pair
-
Log on to the ENS Management Console.
-
In the left-side navigation pane, choose .
-
On the Key Pair List page, click Create Key Pair.
-
Enter a name for the key pair.
-
Select a Creation Mode. You can choose Automatically Create Key Pair or Import Key Pair.
-
Automatically Create Key Pair: The system generates a key pair and downloads the private key automatically. Save this file securely — it cannot be downloaded again.
-
Import Key Pair: Import an existing Base64-encoded public key.
-
-
Click OK. The private key file (key_pair_name.pem) downloads automatically.
Attach a key pair
After attaching or detaching a key pair, restart a Running instance or start a Stopped instance for the change to take effect.
-
Log on to the ENS Management Console.
-
In the left-side navigation pane, choose .
-
On the Key Pair List page, click Attach in the Actions column of the target key pair.
-
In the Attach Key Pair dialog box, select the instance to which you want to attach the key pair.
-
Click OK.
-
Restart or start the ENS instance for the change to take effect.
Delete a key pair
Ensure the key pair is not attached to any instances before deletion.
-
Log on to the ENS Management Console.
-
In the left-side navigation pane, choose .
-
On the Key Pair List page, click Delete in the Actions column of the target key pair.
-
In the Delete Key Pair dialog box, confirm the key pair details.
-
After you confirm that the information is correct, click OK.
Connect using Workbench
Workbench is an Alibaba Cloud browser-based tool for password-free connections to ENS instances. It supports text copying, multi-user logon, and a visual file browser.
Limitations
-
The instance is in the Running state with the OS fully booted.
-
The instance has a public IP address or Cloud Assistant installed.
Reset instance password
-
Two reset options are available: Reset Password and Reset Instance.
-
Reset Password: Requires a restart (Running instances) or start (Stopped instances) to take effect.
-
Reset Instance: Supported only for stopped bare metal instances (not heterogeneous ARM types). Also resets the image.
-
Reset the password:
-
Log on to the ENS Management Console.
-
In the left-side navigation pane, choose .
-
On the Instance Management page, find the target instance. In the Actions column, choose Instance Settings > Reset Password.
-
In the Reset Password dialog box, set the New Logon Password and click OK.
-
-
Reset the instance:
-
Log on to the ENS Management Console.
-
In the left-side navigation pane, choose .
-
On the Instance Management page, find the target instance. In the Actions column, choose Instance Settings > Reset Instance.
-
In the Reset Instance dialog box, set the Change Password, and then click OK.
-