Uploading Files to a Windows Cloud Server from a Linux System vi

Last Updated At: 2025-10-15 20:25:38

Overview

Rdesktop is an open-source client for the Remote Desktop Protocol (RDP) used to connect to Windows CVMs and perform various operations. This article introduces how to quickly upload files from a Linux machine to a Converge Cloud Cloud Virtual Machine (CVM) running the Windows Server 2012 R2 operating system through rdesktop.

Prerequisites

A Windows cloud server has been purchased.

Directions

Obtain the Public IP

Log in to the CVM Console and record the public IP of the CVM where files need to be uploaded on the Instance List page.

Install rdesktop

  1. Execute the following command in the terminal to download the rdesktop installation package. This step takes rdesktop 1.8.3 as an example.

    wget https://github.com/rdesktop/rdesktop/releases/download/v1.8.3/rdesktop-1.8.3.tar.gz
    

    If you need the latest installation package, you can find it on the GitHub rdesktop page replace it with the latest installation path in the command line with the latest version.

  2. Execute the following commands in sequence to extract the installation package and enter the installation directory.

    tar xvzf rdesktop-1.8.3.tar.gz
    
    cd rdesktop-1.8.3
    
  3. Execute the following commands in sequence to compile and install rdesktop.

    ./configure 
    
    make
    
    make install
    
  4. After installation, execute the following command to check if the installation was successful.

    rdesktop
    

Uploading Files

  1. Execute the following command to specify the folder to be shared with the CVM.

    rdesktop Cloud Server Public IP -u Cloud Server Account -p Cloud Server Password -r disk:Shared Folder Name=Local Folder Path
    

    Note:

    • The cloud server account is 'Administrator' by default.
    • If you use a system default password to log in to the instance, go to Message Center to obtain the password first.
    • If you forget your password, reset the instance password.

    For example, execute the following command to share the local computer folder /home to the specified CVM and rename the shared folder to share.

    rdesktop 118.xx.248.xxx  -u Administrator -p 12345678 -r disk:share=/home
    

    Upon successful sharing, the Windows CVM interface will open.

Select This PC in the lower left corner, you can view the shared folders in the server system interface. As shown below:

2. Double-click to open the shared folder, and copy the local files to be uploaded to other hard disks of the Windows cloud server to complete the file upload operation.
For example, copy file A from the share folder to the C: drive of the Windows CVM.

Downloading Files

If you need to download files from the Windows CVM to your local machine, follow the same steps as for uploading files. Copy the required files from the Windows CVM to the shared folder, and the files will be downloaded to the local machine.