If you cannot use Workbench or connection software such as PuTTY, Xshell, and SecureCRT to connect to an Elastic Compute Service (ECS) Linux instance, you can use Virtual Network Computing (VNC) in the ECS console to connect to the Linux instance and view the real-time status of the instance operation interface.
Prerequisites
Background information
- VNC password: the password of VNC used to connect to an instance.
- Instance logon password: the password used to log on to the instance operating system.
By default, a VNC connection session lasts for about 300 seconds. If you do not perform operations within these 300 seconds, the connection to the instance is automatically closed. You must connect to the instance again.
If you cannot use Workbench or connection software to connect to your instance, you can use VNC in the ECS console to connect to the instance. After the instance is connected, you can view the status of the instance and perform operations to resolve the issues described in the following table.
Issue | Solution |
---|---|
Various processes can slow startup time, such as system checks during system startup. | Check the self-check progress. |
The firewall of the instance operating system is enabled by mistake. | Disable the firewall. |
The instance is intruded, which causes a high CPU utilization and high bandwidth usage. | Troubleshoot and terminate abnormal processes. |
Procedure

- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the top navigation bar, select a region.
- On the Instances page, find the instance to be connected and click Connect in the Actions column.
- In the Remote connection dialog box, click Connect in the VNC Connection section.
- Connect to a VNC management terminal. Note In this step, use the VNC password.
- The first time you connect to a VNC management terminal, perform the following operations:
- Change the VNC password. For more information, see the Change the VNC password section in this topic.
- In the Enter VNC Password dialog box, enter the new password.
- Click OK.
- If you are not connecting to a VNC management terminal for the first time, perform the following operations:
- In the Enter VNC Password dialog box, enter the password.
- Click OK.
- The first time you connect to a VNC management terminal, perform the following operations:
- Log on to the instance operating system. Note In this step, use the instance logon password.
Change the VNC password
- On the Instances page, find the instance to be connected and click Connect in the Actions column.
- In the Remote connection dialog box, click Connect in the VNC Connection section.
- In the Enter VNC Password dialog box, click Reset VNC Password.
- In the Reset VNC Password dialog box, enter and confirm the new password, and then click OK.
- Optional: If the instance is a non-I/O optimized instance, restart the instance. For more information, see Restart instances.
Copy long commands
If you want to copy a long-text item such as a download URL from your computer to the instance, you can use the command copy feature.
- On the Instances page, find the instance to be connected and click Connect in the Actions column.
- Connect to a VNC management terminal.
- In the upper-left corner of the interface, click Enter Copy Commands.
- In the Copy and Paste Commands dialog box, enter the content to be copied and click OK.