Help Center> Huawei Cloud Flexus> User Guide> Logging In to a Windows HECS> Logging In to a Windows HECS from a Linux Server

Logging In to a Windows HECS from a Linux Server

Scenarios

This section describes how to log in to a Windows HECS from a Linux server.

Prerequisites

  • The HECS is running.
  • The HECS has an EIP bound.

    When logging in to an HECS through an intranet using MSTSC, for example, through VPN or Direct Connect, you do not need to bind an EIP to the HECS.

  • Access to port 3389 is allowed in the inbound direction of the security group that the HECS is associated with.
  • The network connection between the login tool and the target HECS is normal. For example, the default port 3389 is not blocked by the firewall.
  • RDP has been enabled on the target HECS. By default, RDP has been enabled on the HECSs created using a public image. For instructions about how to enable RDP, see Enabling RDP.

Logging In to a Windows HECS from Local Linux Server

If your local server runs Linux, use a remote access tool, such as rdesktop, to log in to a Windows HECS.

  1. Download and install rdesktop on the local server. Download rdesktop.

    yum -y install rdesktop

  2. Run the following command to log in to the HECS:

    rdesktop -u Username -p Password -g Resolution EIP

    For example, run rdesktop -u administrator -p password -g 1024*720 192.168.x.x.

    Table 1 Parameters in the remote login command

    Parameter

    Description

    -u

    Username, which defaults to Administrator for Windows HECSs

    -p

    Password for logging in to the Windows HECS

    -f

    Full screen by default, which can be switched using Ctrl+Alt+Enter

    -g

    Resolution, which uses an asterisk (*) to separate numbers. This parameter is optional. If it is not specified, the remote desktop is displayed in full screen by default, for example, 1024*720.

    EIP

    EIP of the Windows HECS to be remotely logged in Replace it with the EIP bound to your Windows HECS.

Enabling RDP

When you log in to an HECS for the first time, log in to it using VNC, enable RDP, and access the HECS using MSTSC.

By default, RDP has been enabled on the HECSs created using a public image.

  1. Log in to the HECS using VNC.

    For details, see Login Using VNC.

  2. Click Start in the task bar and choose Control Panel > System and Security > System > Remote settings.

    The System Properties dialog box is displayed.

    Figure 1 System Properties
  3. Click the Remote tab and select Allow connections from computers running any version of Remote Desktop (less secure).
  4. Click OK.