Uploading Files from Linux to Windows CVM using RDP
Last updated: 2020-03-06 12:13:47PDF
rdesktop is an open source RDP client. This article describes how to use it to connect to a CVM running Windows Server 2012 R2 to upload files.
Purchased a Windows CVM instance.
Obtaining CVM Public IP
Log in to CVM Console and find the public IP address of your Windows CVM, as shown in the following image:
###. Installing rdesktop.
- Open a terminal window and run the following command to download rdesktop 1.8.3:
If you want to install a new version, visit the rdesktop home on GitHub to find it. Then replace the path in the command with the new one.
- Run the following commands to decompress the install package and navigate to its directory.
tar xvzf rdesktop-1.8.3.tar.gz
- Run the following commands to compile and install rdesktop.
- After installation finishes, run the following command to check if rdesktop is successfully installed:
- Run the following command to specify the shared folder:
rdesktop cvm_ip -u cvm_username -p cvm_password -r disk:shared_folder_path=local_folder_path
For example, execute the following command to share the
/homefolder on your local Linux machine to the specified CVM, and rename it as
If the operation is successful, the Windows Desktop appears.
rdesktop 118.xx.248.xxx -u Administrator -p 12345678 -r disk:share=/home
Click then My Computer to see shared folders.
- Double click the shared folder to open it. Copy a file in the shared folder to a directory on the Windows CVM disk to upload it.
For example, copy a.txt in
shareto the C drive of Windows CVM.
To download files from a Windows CVM to your Linux computer, copy desired files from the CVM to the shared folder.