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.
wget https://github.com/rdesktop/rdesktop/releases/download/v1.8.3/rdesktop-1.8.3.tar.gz
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
cd rdesktop-1.8.3
./configure
make
make install
rdesktop
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
- The default username for the CVM is
Administrator
.- If you choose to log in with a random password, please check it in Message Center.
- If you forgot your password, please reset the instance password.
/home
folder on your local Linux machine to the specified CVM, and rename it as share
.rdesktop 118.xx.248.xxx -u Administrator -p 12345678 -r disk:share=/home
If the operation is successful, the Windows Desktop appears.share
to 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.
Was this page helpful?