tencent cloud

Feedback

Logging In To Linux Instances (Remote Login)

Last updated: 2024-01-08 09:32:02

    Overview

    This document takes PuTTY as an example to describe 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) to log in to the instance.
    If you use a system default password to log in to the instance, go to Message Center to obtain the password first.
    If you forgot your password, please reset your instance password.
    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

    Password login
    Key login
    1. Download the Windows remote login software, PuTTY.
    2. Double-click putty.exe to open the PuTTY client.
    3. In the PuTTY Configuration window, enter the following content, as shown below:
    
    Configure parameters as follows:
    Host Name (or IP address): the public IP of the CVM. Log in to the CVM console to obtain the public IP from the instance list and details pages.
    Port: the port of the CVM, which must be “22”.
    Connection type: select SSH.
    Saved Sessions: enter the session name, such as test. After configuring Host Name, configure and save Saved Sessions. You can double-click the session name saved under Saved Sessions to log in to CVM.
    4. Click Open to enter the PuTTY interface. The login as: command prompt appears.
    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:
    
    Once logged in, you can see the information about the CVM to which you are currently logged in on the left of the command prompt.
    1. Download the Windows remote login software, PuTTY. Both putty.exe and puttygen.exe are required.
    2. Double-click puttygen.exe to open the PuTTY Key client.
    3. Click Load, select and access the path where the downloaded private key is saved. You should download and keep your private key after creating a key pair. For more information, see Managing SSH Keys For example, select and open the private key file david, as shown below:
    
    
    4. 
    In the PuTTY Key Generator window
    , enter the key name and the encrypted private key password (optional), and click Save private key, as shown below:
    
    
    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, as shown below:
    
    
    6. Double-click putty.exe to open the PuTTY client.
    7. In the left sidebar, go to Connection > SSH > Auth and enter the Auth configuration interface.
    8. Click Browse, and select and access the path where the key is saved, as shown below:
    
    
    9. Switch to the Session configuration interface. Configure the CVM IP, port, and connection type, as shown below:
    
    
    Host Name (or IP address): the public IP of the CVM. Log in to the CVM console to obtain the public IP from the instance list and details pages.
    Port: the port of the CVM, which must be “22”.
    Connection type: select SSH.
    Saved Sessions: enter the session name, such as test. After configuring Host Name, configure and save Saved Sessions. You can double-click the session name saved under Saved Sessions to log in to CVM.
    10. Click Open to enter the PuTTY interface. The login as: command prompt appears.
    11. Enter the user name after login as: and press Enter.
    12. Enter the password configured in Step 4 after Passphrase for key "imported-openssh-key": and press Enter. The entered password is not displayed by default, as shown below:
    
    Once logged in, you can see the information about the CVM to which you are currently logged in on the left of the command prompt.

    Subsequent Operations

    After logging in to the CVM, you can build a personal website or forum or perform other operations. For more information, see:
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support