Help Center> Elastic Cloud Server> User Guide> Instances> Logging In to a Windows ECS> Remotely Logging In to a Windows ECS (Using MSTSC)
Updated on 2024-05-14 GMT+08:00

Remotely Logging In to a Windows ECS (Using MSTSC)


This section describes how to use the remote login tool MSTSC to log in to a Windows ECS from a local computer.


  • The target ECS is running.
  • You have bound an EIP to the ECS. For details, see Binding an EIP.

    An EIP is not required if you log in to an ECS through an intranet using MSTSC, for example, through VPN or Direct Connect.

  • Access to port 3389 is allowed in the inbound direction of the security group to which the ECS belongs. For details, see Configuring Security Group Rules.
  • The network connection between the login tool and the target ECS is normal. For example, the default port 3389 is not blocked by the firewall.
  • Remote Desktop Protocol (RDP) needs to be enabled on the target ECS. For ECSs created using public images, RDP has been enabled by default. For instructions about how to enable RDP, see Enabling RDP.

Logging In to a Windows ECS Using MSTSC

If your local server runs Windows, you can use the remote desktop connection tool MSTSC delivered with the Windows OS to log in to a Windows ECS.

The following uses Windows Server 2012 ECS as an example.

Figure 1 Logging in to an ECS using MSTSC

For details, see the following procedure:

  1. Click the start menu on the local server.
  2. In the Search programs and files text box, enter mstsc.
  3. In the Remote Desktop Connection dialog box, click Show Options.
    Figure 2 Show Options
  4. Enter the EIP and username (Administrator by default) of the target ECS.

    If you do not want to enter the username and password in follow-up logins, select Allow me to save credentials.

    Figure 3 Remote Desktop Connection
  5. (Optional) To use local server resources in a remote session, configure parameters on the Local Resources tab.
    To copy data from the local server to your ECS, select Clipboard.
    Figure 4 Clipboard
    To copy files from the local server to your ECS, click More and select your desired disks.
    Figure 5 Drives
  6. (Optional) Click the Display tab and then adjust the size of the remote desktop.
    Figure 6 Adjusting the size of the desktop
  7. Click Connect and enter the login password as prompted to log in to the ECS.

    To ensure system security, change the login password after you log in to the ECS for the first time.

  8. (Optional) Copy local files to the Windows ECS using clipboard. If the file size is greater than 2 GB, an error will occur.

    To resolve this issue, see troubleshooting cases.

Enabling RDP

For your first login, use VNC to log in and enable RDP for your ECS. Then, use MSTSC to log in.

By default, RDP has been enabled on the ECSs created using a public image.

  1. Log in to the Windows ECS using VNC.

    For details, see Remotely Logging In to a Windows ECS (Using VNC).

  2. Click Start in the task bar and choose Control Panel > System and Security > System > Remote settings.

    The System Properties dialog box is displayed.

    Figure 7 System Properties
  3. Click the Remote tab and select Allow remote connections to this computer.
  4. Click OK.