Connect to ECS instance | using VNC and third-party client tools

Log in to a Linux instance through password authentication


Update time: 2022-05-19 14:30
When you cannot use Workbench and remote connection software (such as PuTTY, Xshell, SecureCRT, etc.) to connect to the Linux instance, you can log in to the instance through the VNC remote connection on the console to view the real-time status of the cloud server operation interface.

Preconditions
The instance has a login password set.
Note If you do not set or forget the login password, you can reset the password for the instance. For details, see Resetting the instance login password.
Background Information
The following passwords are involved when connecting to an instance using VNC:
Remote connection password (VNC password): The management terminal used to connect to the ECS management console.
Instance login password: used to log in to the instance operating system.
The remote connection session of VNC lasts about 300 seconds by default. If you do nothing for more than 300 seconds, the connection will be automatically disconnected and you need to reconnect to the instance.

In the scenario where you cannot log in to the instance using Workbench and remote connection software, you can log in to the instance through VNC remote connection to learn about the instance and solve the problem, as shown in the following table.

Scenario Action after connecting the instance
Instance startup self-check and other reasons cause slow startup speed Check the self-check progress
The operating system firewall is turned on by mistake. Turn off the firewall
The cloud server is down and the CPU and bandwidth consumption is high. Check and end the abnormal process
Steps
The operation flow chart is shown in the figure below. Operating procedures
Log in to the ECS management console.
In the left navigation pane, choose Instances & Images > Instances.
In the upper left corner of the top menu bar, select Territory.
On the Instance List page, find the instance you want to connect to, and in the Action column, click Connect Remotely.
In the Remote Connection and Command dialog box that is displayed, click Login Now corresponding to the VNC remote connection.
Connect to the VNC management terminal.
Note The VNC password is used in this step.
Connecting to the VNC management terminal for the first time:
Change the VNC password.
In the Enter VNC Password dialog box, enter the newly modified password.
Click OK.
Not connecting to the VNC management terminal for the first time:
In the Enter VNC Password dialog box, enter a password.
Click OK.
Log in to the instance operating system.
NOTE The instance login password is used in this step.
Enter the username root and press Enter.
Enter the instance login password and press Enter.
Note After the input is complete, press the Enter key. When logging in to the Linux instance, the interface will not display the password input process.
Supports switching between different VNC management terminals to connect to Linux instances, the default is CTRL+ALT+F1, and a maximum of 10 are supported. For example, click Send Remote Command > CTRL+ALT+F2 in the upper left corner of the interface to switch to CTRL+ALT+F2. The black screen may be because the Linux instance is dormant, which can be woken up by clicking any key on the keyboard.


For more information, please check the official documentation.


Log in to a Windows instance through password authentication


Update time: 2022-05-19 14:30
This article describes how to connect to a Windows instance through a local client.

Preconditions
Before connecting to a Windows instance remotely, make sure you have done the following:
The instance state must be Running. If the instance is not running, the instance must be started. For specific steps, see Launching an Instance.
The instance has already set a login password. If not set or the password is lost, the instance password must be reset. For details, see Resetting the instance login password.
The instance can access the public network:
In a private network (VPC), bandwidth is purchased when an instance is created to allocate a public IP address, or an elastic public IP address is bound after the instance is created. For details, see Binding an Elastic Public IP Address.
In a classic network, your instance must be assigned a public IP address. Here's how to get a public IP address:
Whether it is a subscription instance or a pay-as-you-go instance, you will be assigned a public IP address when you purchase bandwidth when you create an instance.
If you do not set the bandwidth when you create a subscription instance, you can upgrade the bandwidth to obtain a public IP address. For details, see Upgrading Bandwidth.
The security group where the instance resides must have the following security group rules added. For details, see Adding Security Group Rules.
Network Type NIC Type Rule Direction Authorization Policy Protocol Type Port Range Authorization Type Authorization Object Priority
VPC does not need to be configured Inbound direction Allow RDP(3389) 3389/3389 address segment to access 0.0.0.0/0 1
Classic network Public network
Operation method
Depending on the operating system of the local device, you can use different remote connection software to connect to the Windows instance:
The local device uses the Windows operating system
The local device uses the Linux operating system
The local device uses the Mac OS operating system
The local device uses the Windows operating system
If the local device uses the Windows operating system, you can use the remote desktop connection tool MSTSC that comes with Windows to connect to the Windows instance.

Choose one of the following to initiate Remote Desktop Connection (MSTSC):
Select Start > Accessories > Remote Desktop Connection.
Click the start icon, enter mstsc in the search box and press Enter to confirm.
Press the shortcut key Win (Windows logo key) + R to start the Run dialog box, enter mstsc and press Enter.
In the Remote Desktop Connection dialog box, do the following in sequence.
Click Display Options.

Enter the public IP address or EIP address of the instance.
Enter the username, the default is Administrator.
If you don't want to manually enter your username and password the next time you log in, you can select Allow me to save credentials.
Optional: If you want to copy local files to the instance, you can set up to share local computer resources via Remote Desktop: Click the Local Resources tab and choose any action.
If you need to copy text information directly from the local to the instance, select Clipboard.
If you need to copy files from the local to the instance, click Details, select the drive, and then select the drive letter where the files are stored.


For more information, please check the official documentation.

Related Articles

Explore More Special Offers

  1. Short Message Service(SMS) & Mail Service

    50,000 email package starts as low as USD 1.99, 120 short messages start at only USD 1.00