tencent cloud


Logging in to Linux Instance via SSH Key

Last updated: 2022-05-12 12:24:11


    This document describes how to use an SSH key to log in to a Linux Lighthouse instance from a Linux, macOS, or Windows computer.

    Supported Operating Systems

    Linux, macOS, and Windows (Windows 10 and Windows Server 2019).

    Authentication Method

    Password or Key


    • You have obtained the username (custom username or default username root) and password (or key) to log in to the instance.

      If it is your first time to log in to a Linux instance through the local SSH client, you need to reset the password of the default username (root) or bind your key. For detailed directions, see Resetting Password and Managing Keys.

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


    1. Run the following command to connect to your Linux instance.
      • Linux distribution without GUI: Run the following command on the system interface directly
      • Linux distribution with GUI or macOS: Open the command line interface that comes with the system (e.g., Terminal on macOS) before running the following command
      • Windows 10 or Windows Server 2019: Open the command prompt (CMD) before running the following command

      ssh <username>@<IP address or domain name>
    • username is the obtained username in Prerequisites, such as root and ubuntu.
    • IP address or domain name is the public IP address or custom domain of your Linux instance. You can view the instance's public IP address in the Lighthouse console.
    1. Enter the password you have obtained, and press Enter to log in.
    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