Log in to the Windows instance using the RDP file (recommended)

Last updated: 2020-02-18 14:04:41

PDF

Operation scene

RDP, which stands for Remote Desktop Protocol, is a multi-channel Protocol developed by Microsoft to help your local computer connect to a remote computer. RDP is recommended by Tencent Cloud to log in to your Windows Cloud Virtual Machine. This article describes how to log in to a Windows instance using a RDP file.

Suitable for local operating system

Both Windows,Linux and Mac OS can log in to Cloud Virtual Machine using RDP.

prerequisite

  • You need to use the administrator account number and the corresponding password of the instance to log in to the Windows instance remotely.
  • If you log in to the instance using the system default password, go to Internal message Get.
  • If you Forgot password, please Resetting Instance Password .
  • Your Cloud Virtual Machine instance has purchased a public network IP, and the instance has port 3389 of Enable Cloud Virtual Machine instance (Enable is the default for Cloud Virtual Machine instances purchased through quick configuration).

Operation step

The Windows system logs in using RDP

  1. Login Cloud Virtual Machine console .
  2. On the instance management page, select the Windows Cloud Virtual Machine that needs to be logged in, and click * * Log in * *.
  3. In the pop-up "Log in to Windows instance" window, select "Log in with RDP File", and click "download RDP File" to download the RDP file locally.
  1. Double-click the downloaded RDP file to remotely connect to Windows Cloud Virtual Machine.

The Linux system logs in using RDP

You need to install the appropriate remote desktop connection program, it is recommended to use rdesktop to connect. For more details, please refer to Rdesktop official statement .

  1. Execute the following command to check if rdesktop is installed on the system.
rdesktop
  • If you have installed rdesktop, please execute Step 4 .
  • If you prompt command not found, it means that rdesktop, is not installed. Please execute Step 2 .
  1. Execute the following command on the terminal to download the rdesktop installation package, using rdesktop version 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 go to GitHub rdesktop page Find the latest installation package and replace it with the latest installation path on the command line.
3. Under Directory to install rdesktop, execute the following command to extract and install rdesktop.

tar xvzf rdesktop-<x.x.x>.tar.gz ##Replace x.x.x with the downloaded version number 
cd rdesktop-1.8.3
./configure 
make 
make install
  1. Execute the following command to connect to the remote Windows instance.

Please change the parameters in the example to your own.

rdesktop -u Administrator -p <your-password> <hostname or IP address>
  • Administrator That is, the administrator account obtained in the prerequisite.
  • <your-password> That is, the login password set for you.
    If you log in to the instance using the system default password, go to Internal message Get. If you Forgot password, please Resetting Instance Password .
  • <hostname or IP address> That is, the public network IP or custom domain name of your Windows instance.

The MacOS system logs in using RDP

  • The following action takes Microsoft Remote Desktop for Mac as an example. Microsoft officially stopped providing download links for Remote Desktop clients in 2017 and transferred to its subsidiary HockeyApp to carry out the Beta version of publish.
  • The following action takes Cloud Virtual Machine, who is connected to the Windows Server 2012 R2 operating system, as an example.
  1. Download Microsoft Remote Desktop for Mac And install it locally.
  2. Launch MRD, and click [Add Desktop]. as shown below:
  3. A pop-up "Add Desktop" window, follow these steps to create a connection. as shown below:
    1. Enter Cloud Virtual Machine public network IP at "PC name".
    2. Click [Add] to confirm creation.
    3. The rest of the options remain at the default settings, and the connection is created.
      You can view the connections that have been successfully created in the window. as shown below:
  4. Double-click to open the newly created connection, and in the pop-up window, enter Cloud Virtual Machine's account number and password as prompted, and click [Continue].
  1. Click [Continue] in the pop-up window to confirm the connection. as shown below:

    After a successful connection, the Windows Cloud Virtual Machine interface will be opened.