Updated on 2024-04-01 GMT+08:00

Remotely Logging In to a Windows ECS (Using VNC)

Scenarios

This section describes how to use VNC provided on the management console to log in to an ECS. This function applies to emergency O&M. In other scenarios, you are advised to log in to ECSs using SSH or MSTSC.

Constraints

  1. The remote login function is implemented using custom ports. Therefore, before attempting to log in remotely, ensure that the port to be used is not blocked by the firewall. For example, if the remote login link is xxx:8002, ensure that port 8002 is not blocked by the firewall.
  2. If the client OS uses a local proxy and the firewall port cannot be configured on the local proxy, disable the proxy mode and then try logging in remotely.
  3. The French keyboard supports the following browsers: Google Chrome 55, Mozilla Firefox 50, and Internet Explorer 11.

    If your browser version is too early to support the French keyboard, use both the soft keyboard and physical keyboard for data input.

  4. The password for logging in to a Linux ECS has been set.

    If you have not set the password, log in to the ECS using an SSH key and then set the login password.

Login Notes

  1. When you log in to the ECS using VNC, four types of keyboards will be used. These are described in Table 1.
    Table 1 Keyboard types

    Keyboard Type

    Description

    Keyboard Language

    Physical keyboard

    Used by the terminal and allows terminal data input.

    Selected by users locally.

    Input method keyboard on the terminal

    Used for logging in to the management console from a terminal, such as a computer. The keyboard input method of the terminal must comply with the physical keyboard language type. In this way, the entered data can be correctly transferred from the physical keyboard to the VNC client.

    Selected by users locally.

    VNC keyboard

    Used for VNC logins. The VNC keyboard input method must comply with the physical keyboard language type. In this way, the entered data can be correctly transferred from the VNC client to the ECS OS.

    NOTE:

    The English keyboard is used by default. The system also supports other keyboard languages.

    Can be configured using the management console.

    For instructions about how to select a VNC keyboard language, see Logging In to an ECS Using an English Keyboard and Logging In to an ECS Using a Non-English Keyboard.

    ECS OS keyboard

    Input method keyboard configured in the ECS OS. Ensure that this input method complies with the physical keyboard language type for correct response to the entered data transferred from the VNC client.

    NOTE:
    • The default OS keyboard language of an ECS created using a public image is English.
    • The OS keyboard language of an ECS created using a private image is customized.

    Configured by users locally.

    For instructions about how to change an ECS OS keyboard language, see Changing the OS Keyboard Language.

  2. When you log in to the ECS using VNC, ensure that your configured keyboard language is correct.
    The entered data is as expected only if the input method keyboard on the terminal, the VNC keyboard, and the ECS OS keyboard languages are the same as the physical keyboard language. For details about language configuration in the four types of keyboards, see Table 2.
    Table 2 Language configuration in the four types of keyboards

    Physical Keyboard

    Input Method Keyboard on the Terminal

    VNC Keyboard

    ECS OS Keyboard

    Permission

    English

    English

    English

    English

    Yes

    French

    No

    French

    English

    No

    French

    No

    French

    English

    English

    No

    French

    No

    French

    English

    No

    French

    No

    French

    English

    English

    English

    No

    French

    No

    French

    English

    No

    French

    No

    French

    English

    English

    No

    French

    No

    French

    English

    No

    French

    Yes

  3. If the password used when you create the ECS is entered using the English keyboard, you must use the English keyboard to enter the password when logging in to the ECS later.

Logging In to an ECS Using an English Keyboard

  1. Log in to the management console.
  2. Under Computing, click Elastic Cloud Server.
  3. Obtain the password for logging in to the ECS.
    Before logging in to the ECS using VNC, you must have the login password.
    • For instructions about how to obtain the password for logging in to a Windows ECS, see Obtaining the Password for Logging In to a Windows ECS.
    • Do as follows to obtain the password for logging in to a Linux ECS created using a private image:
      • If the image that is used to create the ECS meets the following conditions, the default image password is the login password:
        • When Cloud-Init is installed, lock_passwd is set to false. This indicates that password authentication is enabled.
        • passwd is set to the default image password.
      • If password authentication is disabled or no default image password is set when Cloud-Init is installed, you must log in to the ECS by following the instructions provided in Remotely Logging In to a Linux ECS (Using an SSH Key Pair). Then, you can set the ECS login password.
    • If a Linux ECS is created using a public image, you must log in to the ECS by following the instructions provided in Remotely Logging In to a Linux ECS (Using an SSH Key Pair). Then, you can set the ECS login password.
  4. In the search box above the upper right corner of the ECS list, enter the ECS name and click for search.
  5. Locate the row containing the ECS and click Remote Login in the Operation column.
  6. In the Configure Keyboard Layout for Remote Login dialog box, select English keyboard.
  7. Click Remote Login.
  8. (Optional) If you have changed the system language, in the dialog box that is displayed, click Start Remote Login.
  9. (Optional) When the system displays "Press CTRL+ALT+DELETE to log on", click Send CtrlAltDel in the upper part of the remote login page to log in to the ECS.
    Figure 1 Send CtrlAltDel
  10. Enter the password obtained in 3.

Logging In to an ECS Using a Non-English Keyboard

  1. Log in to the management console.
  2. Under Computing, click Elastic Cloud Server.
  3. Obtain the password for logging in to the ECS.
    Before logging in to the ECS using VNC, you must have the login password.
    • For instructions about how to obtain the password for logging in to a Windows ECS, see Obtaining the Password for Logging In to a Windows ECS.
    • Do as follows to obtain the password for logging in to a Linux ECS created using a private image:
      • If the image that is used to create the ECS meets the following conditions, the default image password is the login password:
        • When Cloud-Init is installed, lock_passwd is set to false. This indicates that password authentication is enabled.
        • passwd is set to the default image password.
      • If password authentication is disabled or no default image password is set when Cloud-Init is installed, you must log in to the ECS by following the instructions provided in Remotely Logging In to a Linux ECS (Using an SSH Key Pair). Then, you can set the ECS login password.
    • If a Linux ECS is created using a public image, you must log in to the ECS by following the instructions provided in Remotely Logging In to a Linux ECS (Using an SSH Key Pair). Then, you can set the ECS login password.
  4. In the search box above the upper right corner of the ECS list, enter the ECS name, IP address, or ID, and click for search.
  5. Locate the row containing the ECS and click Remote Login in the Operation column.
  6. In the Configure Keyboard Layout for Remote Login dialog box, select your desired keyboard language.
    • When logging in to the ECS using VNC for the first time, select the default English keyboard. The ECS OS uses the English keyboard by default.
    • If you have changed the keyboard language of the ECS OS, select the keyboard language to which you have changed.
  1. Click Remote Login.
  2. (Optional) If you have changed the system language, in the dialog box that is displayed, click Start Remote Login.
  3. (Optional) When the system displays "Press CTRL+ALT+DELETE to log on", click Send CtrlAltDel in the upper part of the remote login page to log in to the ECS.
    Figure 2 Send CtrlAltDel
  4. Enter the password obtained in 3.
    • When logging in to the ECS using VNC for the first time, use the English keyboard to enter the password. After you have logged in to the ECS, see Changing the OS Keyboard Language to change the keyboard language of the ECS OS. You can then select the keyboard language and enter the password the next time you log in.
    • If you have changed the keyboard language of the ECS OS, ensure that the keyboard language in use, the keyboard language selected in step 6, and the changed OS keyboard language are all the same.

Changing the OS Keyboard Language

  • If the ECS is running Linux, run the following command:

    loadkeys keymapfile

    The keymapfile parameter indicates the name of the file containing the mappings between the keys and displayed characters.

    For example, if the name of a French keyboard mapping file is fr, run the loadkeys fr command.

  • If the ECS is running Windows, perform the following operations:

    Switch the input method or open the soft keyboard before entering characters. To do so, click the function menu icon and select soft keyboard and keyboard layout.

Configuration Example

Scenarios

If you attempt to log in to an ECS created using a public image for the first time, the languages of the four types of keyboards before the configuration are as follows (Before configuration row in Table 3):
  • Physical keyboard: French
  • Input method keyboard on the terminal: English
  • VNC keyboard: English
  • ECS OS keyboard: English

In this case, you must change the languages of the other three types of keyboards to the same language as the physical keyboard for expected data entering. For details, see the Solution 1 row in Table 3.

Table 3 Languages in the four types of keyboards

-

Physical Keyboard

Input Method Keyboard on the Terminal

VNC Keyboard

ECS OS Keyboard

Before configuration

French

English

English

English

Solution 1

French

French

French

French

Solution 2

English

English

English

English

Procedure

  1. Locally configure the language, for example, French, in the input method keyboard on the terminal.
  2. Set the VNC keyboard language to English.

    When you log in to the ECS using VNC for the first time, the default ECS OS keyboard language is English. Therefore, you must set the VNC keyboard language to English.

  3. Log in to the ECS and change the ECS OS language to French.

    For details, see Changing the OS Keyboard Language.

  4. Change the VNC keyboard language to French.

    For details, see Logging In to an ECS Using a Non-English Keyboard.

To set the languages on the four types of keyboards to all be the same, repeat steps 1 to 4.

During the configuration, if English characters cannot be entered using the current physical keyboard, use the English soft keyboard to modify the configuration described in the Solution 2 row of Table 3.

  • To enable the Windows English soft keyboard, choose Start > Run, enter osk, and press Enter.
  • The method of enabling the Linux English soft keyboard varies depending on the OS version and is not described in this document.