Logging into Linux Instances via Remote Login Tools

Last updated: 2020-04-01 11:11:54

    Scenario

    This document takes PuTTY as an example to introduce how to log in to a Linux instance from Windows by using remote login software.

    Applicable OS

    Windows

    Authentication Method

    Password or Key

    Prerequisites

    • You must already have the admin account and password (or key) of 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 CVM purchased with quick configuration).

    Directions

    Logging in with a password

    1. Download the Windows remote login software, PuTTY.
      To download 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 instance list and details pages).
      • Port: The port of the CVM. This must be set to 22.
      • Connect type: Select SSH.
      • Saved Sessions: Enter the session name, such as test.
        After configuring Host Name, configure Saved Sessions and save it. You can double-click the session name saved under Saved Sessions to log in to the CVM subsequently.
    4. Click Open to enter the PuTTY interface, and login as: is prompted.
    5. Enter the username after login as: and press Enter.
    6. Enter the password after Password and press Enter.
      The entered password is not displayed by default, as shown below:

      After logging in, information about the CVM that you currently log in to appears to the left of the command prompt.

    Logging in with a key

    1. Download the Windows remote login software, PuTTY.
      Download putty.exe and puttygen.exe. To download PuTTy, click here.
    2. Double-click puttygen.exe to open the PuTTY Key client.
    3. Click Load, select and open the path where the downloaded private key is saved. This is shown in the following figure:
      For example, select and open the private key file named 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 path where the key will be saved. In the file name field, enter Key Name.ppk and click Save. For example, save the private key file david as david.ppk. 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 path where the key is saved. This is shown in the following figure:
    9. Switch to Session configuration interface. Configure the CVM 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 instance 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 Host Name, configure Saved Sessions and save it. You can double-click the session name saved under Saved Sessions to log in to the CVM subsequently.
    10. Click Open to initiate the login request.

    Subsequent Operations

    After logging in to the CVM, you can build a personal website or forum on Tencent Cloud CVM or perform other operations. For more information, see the following documents:

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help