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.
Log in to CVM Console and find the public IP address of your Windows CVM, as shown in the following image:
###. Installing rdesktop.
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.
tar xvzf rdesktop-1.8.3.tar.gz
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
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.