tencent cloud

Feedback

Logging in to Linux Instance via Remote Login Software

Last updated: 2022-06-10 10:15:46

    Overview

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

    Supported Operating Systems

    Windows

    Note

    If your local computer uses Linux or macOS, use SSH to log in to the Linux instance.

    Authentication Method

    Password or Key

    Prerequisites

    • You have obtained the username and password (or SSH key) to log in to the instance.
      Note

      If it is your first time to log in to a Linux instance through a local remote login application, you need to reset the password of your username (e.g., root and ubuntu) or bind your key. For detailed directions, see Resetting Password and Managing Key.

    • Make sure the network connection between the local computer and the instance is working, and the port 22 is open in the firewall policies of the instance (Port 22 is open by default upon the creation of the instance).

    Limits

    For instances created with Ubuntu images, password login is disabled by default for the root account. To enable it, see Uploading Local Files.

    Directions

    1. Download the Windows remote login software: PuTTY.
      Download 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 Lighthouse instance. You can check this public IP in the Lighthouse console.
      • Port: The port open for remote login on the Lighthouse side. For a Linux instance, it defaults to 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 the instance.
    4. Click Open to enter the PuTTY page. The login as: command prompt appears.
    5. Enter your username after login as: (e.g., root) and press Enter.
      Note

      For all Linux images, except Ubuntu images, you can log in with the root account. For Ubuntu system, the default username is ubuntu. To log in with the root account, see How do I log in to an instance with root on Ubuntu?.

    6. Enter your password after Password and press Enter.
      The entered password is invisible by default.

      Once logged in, you can see the information about the current Lighthouse instance on the left side of the command prompt.
    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