tencent cloud

Feedback

Enabling SSH Key Login for a Native Node

Last updated: 2023-05-05 11:05:32

    Overview

    This document describes how to enable SSH key login, assign SSH keys, and modify SSH keys for node pools or native nodes.

    Directions

    For node pools

    Assign an SSH key when creating a node pool
    Modify the SSH key associated with an existing node pool
    You can assign an SSH key to a node pool during the creation of the node pool. After a scale-out of the node pool, the SSH key is automatically assigned to the new nodes.
    1. Log in to the TKE console and select Cluster in the left sidebar.
    2. On the cluster list page, click the ID of the target cluster to go to the details page.
    3. Choose Node management > Node pool in the left sidebar. On the Node pool list page, click Create node pool.
    4. On the Create node pool page, select SSH Key.
    5. Click Create node pool.
    Go to the details page of the node pool and modify the associated SSH key in the launch configuration section. The new SSH key takes effect only for new nodes in the node pool and does not affect the existing native nodes.
    1. Log in to the TKE console and select Cluster in the left sidebar.
    2. On the cluster list page, click the ID of the target cluster to go to the details page.
    3. Choose Node management > Node pool in the left sidebar. On the Node pool list page, click the ID of the node pool.
    4. On the details page of the node pool, click
    
    next to Associate SSH key in the launch configuration section.
    5. On the Set node pool SSH key page, select an SSH key.
    6. Click OK.

    For nodes

    Enable or modify SSH key login for a node
    Enable or modify node login for multiple nodes at a time
    If no SSH key is assigned to a node pool, you can enable and modify SSH key login for a single node in the node pool.
    1. Log in to the TKE console and select Cluster in the left sidebar.
    2. On the cluster list page, click the ID of the target cluster to go to the details page.
    3. Choose Node management > Node pool in the left sidebar. On the Node pool list page, click the ID of the node pool.
    4. On the details page of the node pool, choose More > Node Login in the row of the node.
    You can assign an SSH key to multiple nodes at a time.
    1. Log in to the TKE console and select Cluster in the left sidebar.
    2. On the cluster list page, click the ID of the target cluster to go to the details page.
    3. Choose Node management > Node pool in the left sidebar. On the Node pool list page, click the ID of the node pool.
    4. On the details page of the node pool, select multiple nodes as needed and choose More > Batch set SSH key.
    Note:
    1. Modifying the SSH key assigned to a node does not require the node to restart.
    2. When you enable or modify node login for the first time or modify an SSH key that has been assigned to a node, the operation takes one to two minutes.
    3. We recommend that the number of nodes for which you enable or modify SSH key login at a time do not exceed 20.
    4. Batch enabling or modification of node login does not override the SSH keys that have been assigned to nodes.
    
    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