Logging into Linux Instance via Remote Login Tools

Last updated: 2019-11-04 16:07:04

PDF

Scenario

This document takes PuTTY software as an example to introduce how to log in to a Linux instance by using remote login software on a local computer with a Windows system.

Applicable Local OS

Windows

Authentication Method

Password or Key

Prerequisites

  • You must already have the admin account and password (or key) for the instance to be logged in to.
  • A public IP has been purchased and obtained for your CVM instance, and port 22 is open (this is open by default for CVMs purchased with quick configuration).

Steps

Logging in with a Password

  1. Download the Windows remote login software, PuTTY.
    How to get PuTTY: Click here
  2. Double click putty.exe to open the PuTTY client.
  3. In the PuTTY Configuration window, enter the following content. This is shown in the following figure:

    Parameters are as follows:
    • Host Name (or IP address): The public IP of the CVM (log in to the CVM Console to obtain the public IP in the list and details pages).
    • Port: The port of the CVM. This must be set as 22.
    • Connect type: Select SSH.
    • Saved Sessions: Enter the session name, such as test.
      After configuring the Host Name, configure Saved Sessions and save it. Then you can directly log into the CVM by double clicking the session name saved under Saved Sessions.
  4. Click Open to enter PuTTY interface. login as: appears.
  5. Behind login as:, enter the user name and press Enter.
  6. Behind Password, enter the password and press Enter.
    After logging in, the information about the CVM that you are currently logged in to appears to the left of the command prompt. This is shown in the following figure:

Logging in with a Key

  1. Download the Windows remote login software, PuTTY.
    Download putty.exe and puttygen.exe software. To obtain PuTTy, click here.
  2. Double click puttygen.exe to open the PuTTY Key client.
  3. Click Load, select and open the saved path of the downloaded private key. This is shown in the following figure:
    For example, select and open the private key file that has the file name of david.
  4. In the PuTTY Key Generator window, enter the key name and the encrypted private key password. Click Save private key. This is shown in the following figure:
  5. In the pop-up window, select the save path of the key. In the file name field, enter Key Name.ppk, and click Save. For example, save the david private key file as david.ppk key file. This is shown in the following figure:
  6. Double click putty.exe to open the PuTTY client.
  7. In the left sidebar, select Connection > SSH > Auth, to enter the Auth configuration interface.
  8. Click Browse, and select and open the save path for the key. This is shown in the following figure:
  9. Switch to the Session configuration interface. Configure the CVM’s IP, port, and connection type. This is shown in the following figure:
    • Host Name (IP address): The public IP of the CVM. Log in to the CVM Console to obtain the public IP in the list and details pages.
    • Port: Port of the CVM, which must be 22.
    • Connect type: Select SSH.
    • Saved Sessions: Enter the session name, such as test.
      After configuring the Host Name, configure Saved Sessions and save it. Then you can directly log into the CVM by double clicking the session name saved under Saved Sessions.
  10. Click Open to initiate the login request.