Overview
This document describes how to bind the specified key to an instance on the instance details page in the Lighthouse console.
Prerequisites
You can bind a key to only a Linux instance.
Notes
The Tencent Cloud Lighthouse Console offers two approaches to binding/unbinding keys, including Online and Offline.
If you choose online binding/unbinding, please ensure that the status and Tencent Cloud Automation Tools status of your selected instance are both running.
If you choose offline binding/unbinding, the server will be shut down for a running instance. To avoid any data losses, plan for the operation time in advance. It is recommended that you perform the operation during business off-peak periods, to minimize impact.
To improve the Lighthouse instance security, after a Linux instance is bound to a key, login to the root account with a password will be forbidden by default. If you want to keep the password login method, modify the configuration as instructed in Modifying SSH configuration. Directions
2. On the instance details page, select the SSH key tab and click Bind Key.
3. In the Bind key pop-up window, perform the following operations based on your actual needs:
(Recommended) Bind online
1. Select the target key, See the figure below:
2. Select Bind online.
1. Select the target key, and choose Offline bind. See the figure below:
2. Read and select the offline binding notice, then click OK.
Note:
During the binding process, the instance will shut down first and then start up, and the business will be interrupted momentarily. We recommend you do so during off-peak hours.
If the instance fails to shut down normally, it will be forced to shut down. Forced shutdown may cause data losses or file system corruption. Therefore, perform forced shutdown with caution.
Forced shutdown may take a while. Please be patient.
After the key is successfully bound or unbound, the server will automatically start up.
Related Operations
Unbinding key
Note:
After unbinding the key, you will no longer be able to use it to log in to the instance remotely. Proceed with caution.
2. On the instance details page, select the SSH key tab.
3. Select the target key and click Unbind above the list or Unbind on the right as shown below:
4. In the Unbind key pop-up window, perform the following operations based on your actual needs:
(Recommended) Unbind online
1. Select Unbind Online as shown below:
2. Confirm the key unbinding and click OK.
Note:
The default user for Ubuntu is ubuntu, while for other systems it is root.
1. Select Offline Unbind as shown below:
2. Read and select the offline binding notice, then click OK.
Note:
During the unbinding process, the instance will shut down first and then start up, and the business will be interrupted momentarily. We recommend you do so during off-peak hours.
If the instance fails to shut down normally, it will be forced to shut down. Forced shutdown may cause data losses or file system corruption. Therefore, perform forced shutdown with caution.
Forced shutdown may take a while. Please be patient.
After the key is successfully bound or unbound, the server will automatically start up.
References