Elastic Cloud Server

Connect to a Windows Cloud Server from a Linux machine

2025-11-17 03:32:53

Scenario

This section describes how to log in to the Windows cloud server via Remote Desktop Protocol (RDP) on Linux server. In this way, you can use Linux server to remotely manage and operate the desktop environment of Windows cloud server.

Before You Begin

· The Windows cloud server is in the Running state.

· You have obtained the username and password of the Windows cloud server. If you forget the password, you should reset the cloud server password. For details, see Reset ECS Password in Console.

· Port 3389 has been opened to the inbound security group where the Windows cloud server is located.

· Windows Firewall is not enabled or port 3389 is released after it is enabled.

· The login tool has network connectivity with the Windows cloud server. If you use a terminal on the public network to log in, you need to bind an elastic IP address to your Windows cloud server. If you use this method to log in over the Intranet, you do not need to bind the Elastic IP, such as VPN or Cloud Dedicated Access.

· The Windows cloud server has enabled Remote Desktop Protocol (RDP).

Procedure

If the local server is running Linux operating system, you can use a remote connection tool (such as rdesktop) to connect to the Windows cloud server.

1. Open the terminal and make sure that the rdesktop tool is installed on your Linux server. You can execute the following command to check whether rdesktop is installed:

rdesktop

If it prompts "command not found", it means rdesktop is not installed. You can visit rdesktop tool website to obtain the rdesktop installation package and install it.

2. Enter the following command to log in to the Windows cloud server.

rdesktop -u username -p password -g resolution elastic IP address

Replace the following information in the command with actual values:

· Username: The username you use to log in to the Windows cloud server.

· Password: The password you use to log in to the Windows cloud server.

· Resolution: The remote desktop resolution you want to set, expressed as width and height.

· Elastic IP address: The elastic IP address of the Windows cloud server.

Example:

rdesktop -u administrator -p password -g 1024*720 121.xx.xx.xxx

Table 1 Remote Login Command Parameters

Parameter

Description

-u

Username, the default username for Windows instance is Administrator.

-p

The password used to log in to the Windows instance.

-f

The default is Full Screen, you need to use the Ctrl+Alt+Enter key combination to switch to full screen mode.

-g

Resolution, connected by asterisks(*). Can be omitted, defaults to Full Screen when omitted. For example: 1024*720

Elastic IP address

The IP address of the server to which you need to connect remotely. This needs to be replaced with the elastic IP address of your Windows instance.


YXm_RC_KELLu