- Documentation
Elastic Compute Service
Elastic Compute Service
Best Practices
Instance data
Uploading or downloading files
Transferring files from local Linux system to Windows instance (via RDP)
Uploading or downloading files
Transferring files from local Linux system to Windows instance (via RDP)
Transferring files from local Linux system to Windows instance (via RDP)
If your local computer is running the Linux operating system, you can transfer files to a Windows ECS instance by using RDP.
About RDP
rdesktop is a Linux-based client program that supports Windows Remote Desktop connections. It enables remote access to Windows desktops from Linux systems, uses the Remote Desktop Protocol (RDP), and is compatible with multiple versions.
Prerequisites
- The Linux operating system is used.
- The Windows operating system is used.
- The instance is in the Running status.
- An inbound rule is added to the security group of the instance to allow inbound traffic on port 3389. For detailed steps, refer to Changing security group rules.
Software version
- Operating system of the local computer: CentOS 8.3.
- Operating system of the ECS instance: Windows Server 2016.
Procedure
Install rdesktop
- Execute the following command on the local computer to install rdesktop from the software repository.
tip
If you are unable to install rdesktop from the software repository, you can go to the rdesktop official website to download it, and then execute the wget command to download and install it. Execute the wget command to download and install rdesktop.
- After the installation is complete, you can execute the following command to check whether the installation is successful.
If the rdesktop version number is displayed, the installation is successful.
Upload a file
- Execute the following command on your local computer to specify the folder that you want to upload to the ECS instance.
- rdesktop EIP of the ECS instance -u Username of the ECS instance -p Login password of the ECS instance -r disk:Specified shared folder name=Local folder path
- EIP of the ECS instance.
- Username of the ECS instance: The username is "Administrator" for a Windows instance.
- Login password of the ECS instance: The password corresponding to the username of the ECS instance. If you forget your password, reset the password.
- For example, you can execute the following command to share the /home folder of the local computer with the specified ECS instance, and rename the shared folder to share.
- After the local computer is connected to the remote ECS instance, access the Windows ECS instance. Click "Start > File Explorer", select "This PC" on the "File" page, and view the shared folder.
- Double-click to open the shared folder, and copy the local file that you want to upload to another volume on the Windows ECS instance. The file upload operation is finished.
Download a file
To download files from an ECS instance to your local computer, you can copy the required files from the Windows ECS instance to the shared folder by referring to the upload operation.
Appendix
Enable RDP on the Windows ECS instance
- Select "This PC > Properties", and click "Advanced system settings".
- Select the "Remote" tab, confirm that "Allow remote connections to this computer" is selected, and select "Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)" based on your needs.
Last updated: 2026.10.14 17:31:24