Login 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.

For instructions about how to copy and paste data on VNC pages after the ECS login, see Follow-up Procedure.

Note

Before using remote login (VNC) provided on the management console to log in to a Linux ECS authenticated using a key pair, log in to the ECS using an SSH key and set a login password.

Constraints

  • The remote login function is implemented using customized 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.

  • 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.

Login Notes

  1. When you log in to the ECS using VNC, four types of keyboards will be used, as 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 through 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. For additional information, see Public Images Introduction.

    • 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

    Supported or Not

    English

    English

    English

    English

    Yes

    German

    No

    German

    English

    No

    German

    No

    German

    English

    English

    No

    German

    No

    German

    English

    No

    German

    No

    German

    English

    English

    English

    No

    German

    No

    German

    English

    No

    German

    No

    German

    English

    English

    No

    German

    No

    German

    English

    No

    German

    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. Click image1 in the upper left corner and select your region and project.

  3. Under Computing, click Elastic Cloud Server.

  4. In the search box above the upper right corner of the ECS list, enter the ECS name and click image2 for search.

  5. Locate the row containing the ECS and click Remote Login in the Operation column.

  6. In the displayed Configure Keyboard Layout for Remote Login dialog box, select the English keyboard.

    **Figure 1** Keyboard layout configuration

    Figure 1 Keyboard layout configuration

  7. Click Remote Login.

  8. (Optional) If you have changed the system language, in the dialog box that is displayed, click Start Remote Login.

    **Figure 2** Remote Login

    Figure 2 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 3** Send CtrlAltDel

    Figure 3 Send CtrlAltDel

  10. (Optional) If you need your cursor to be displayed on the remote login page, click Local Cursor.

    **Figure 4** Local Cursor

    Figure 4 Local Cursor

  11. Enter the ECS password as prompted.

Logging In to an ECS Using a Non-English Keyboard

  1. Log in to the management console.

  2. Click image3 in the upper left corner and select your region and project.

  3. Under Computing, click Elastic Cloud Server.

  4. In the search box above the upper right corner of the ECS list, enter the ECS name, IP address, or ID, and click image4 for search.

  5. Locate the row containing the ECS and click Remote Login in the Operation column.

  6. In the displayed Configure Keyboard Layout for Remote Login dialog box, select the English keyboard.

    **Figure 5** Keyboard layout configuration

    Figure 5 Keyboard layout configuration

  1. Click Remote Login.

  2. (Optional) If you have changed the system language, in the dialog box that is displayed, click Start Remote Login.

    **Figure 6** Remote Login

    Figure 6 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 7** Send CtrlAltDel

    Figure 7 Send CtrlAltDel

  4. (Optional) If you need your cursor to be displayed on the remote login page, click Local Cursor.

    **Figure 8** Local Cursor

    Figure 8 Local Cursor

  5. Enter the ECS password as prompted.

    • 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 German keyboard mapping file is de, run the loadkeys de command.

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: German

  • 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

German

English

English

English

Solution 1

German

German

German

German

Solution 2

English

English

English

English

Procedure

  1. Locally configure the language, for example, German, in the input method keyboard on the terminal.

  2. Set the VNC keyboard language to English.

    Note

    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 German.

    For details, see Changing the OS Keyboard Language.

  4. Change the VNC keyboard language to German.

    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, perform 1 to 4.

Note

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. In such a case, you only need to use the English soft keyboard to enter characters.

  • 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.

Follow-up Procedure

Local commands can be copied to an ECS. To do so, perform the following operations:

  1. Log in to the ECS using VNC.

  2. Click Input Commands in the upper right corner of the page.

    **Figure 9** Input Commands

    Figure 9 Input Commands

  3. Press Ctrl+C to copy data from the local computer.

  4. Press Ctrl+V to paste the local data to the Paste & Send window.

  5. Click Send.

    Send the copied data to the CLI.

Note

There is a low probability that data is lost when you use Input Commands on the VNC page of a GUI-based Linux ECS. This is because the number of ECS vCPUs fails to meet GUI requirements. In such a case, it is a good practice to send a maximum of 5 characters at a time or switch from GUI to CLI (also called text interface), and then use the command input function.