VNC enables remote connections to an ECS instance, supporting instances in Active or Stopped states, including during the operating system startup phase. This method is also useful for troubleshooting instance issues. This topic outlines how to use VNC for logging on to an instance via the console.
As of July 10, 2023, VNC remote connection no longer requires a separate login password. Secure access to ECS instances is possible using the instance's login credentials.
Following a security enhancement on July 10, 2023, Alibaba Cloud now manages authentication credentials and ensures end-to-end encryption for VNC logins to instances. Post-upgrade, instance usernames and passwords are sufficient for login without specifying VNC login passwords.
What is VNC remote connection?
VNC is a method for connecting to instances, based directly on the underlying physical server of the ECS instance. It supports connections to instances in Active or Stopped states. Users can view the real-time interface of the instance's operating system (Linux systems may not have a graphical interface by default). VNC connections are not affected by security group settings or software running on the instance, providing a reliable means to address connection issues.
Most remote connection tools depend on system services like SSH (Secure Shell), which may fail or not start, blocking remote access. VNC operates at a lower level, remaining functional even when such issues arise, aiding in troubleshooting and repair.
In Simple Application Server, VNC remote connection is referred to as Rescue Logon. For additional details, see using the rescue connection server.
Prerequisites
The instance is in active or stopped status
Prepare the instance logon name and password
RAM users need relevant permissions to use this feature
Procedure
By default, a VNC connection session lasts approximately 300 seconds. If no actions are taken within this time, the connection will automatically close, requiring a new connection attempt.
The main steps for connecting are as follows:
Step 1: Find the instance to connect to
First, identify the instance you want to connect to in the console.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
-
On the Instance List page, locate the instance you want to connect to.
Step 2: Enter the VNC remote connection page
Once you've found the instance, proceed to its VNC remote connection page.
-
In the Actionscolumn for the desired instance, click Remote connection.
-
In the Remote connection dialog box that appears, click Show Other Logon Methods. Then click VNC and click Sign in now.
-
The VNC remote connection page will be displayed as shown below.
ImportantIf the page displays the message "The current operation is not authorized. Please contact the primary account to grant RAM authorization before executing the operation", you must verify whether you have the necessary permissions to use VNC for connecting to the instance. For details on the required permissions, see RAM users need relevant permissions to use this feature.
Linux instances
Example using Alibaba Cloud Linux 3.
Windows instances
Example using Windows Server 2025.
Step 3: Log on to the operating system in the instance
The instance's remote connection page will display the operating system interface (Linux systems may not have a graphical interface by default). Login using the username and password.
If you're uncertain of your logon credentials, refer to how to prepare your instance logon name and password. Should you need to reset a forgotten password, consult how to reset your instance logon password.
Log on to Linux instances
-
Enter the login user (e.g., root, ecs-user), and press the
Enter
key. -
Input the instance login password, press the
Enter
key, and wait for the login to complete.ImportantPassword characters are not displayed when entering a password for Linux instances. Ensure accuracy when typing your password.
If you're uncertain of your logon password or encounter the
Login Incorrect
error during connection, you can reset your instance password and attempt to log on again. For more information, see Reset instance logon password. -
Upon successful login, you will enter the operating system.
The interface after a successful login is shown below.
-
A persistent black screen may indicate the instance is in sleep mode. Press any key to wake the instance.
-
You can switch between different VNC management terminals to connect to Linux instances. The default is CTRL+ALT+F1, and up to 10 are supported. For example, select
in the upper left corner of the interface to switch to the second virtual terminal.
Log on to Windows instances
-
Click
in the upper left corner to unlock the Windows system screen. -
Select the user account (default is Administrator), enter the instance login password, and press Enter to access the Windows system.
More features
Paste operation (Copy command input)
Send remote command
FAQ
For troubleshooting VNC connection issues with an instance, refer to VNC Connection Issues to an Instance.
References
To customize a remote connection client through coding, you can invoke the DescribeInstanceVncUrl API to retrieve the VNC login URL for remote access to ECS instances.