Bastionhost provides the shared key feature. This feature allows you to create a private key and associate the key with multiple host accounts at a time. This way, you can manage host accounts in a more efficient manner. You can edit the basic information about a private key. You can also associate a private key with host accounts or disassociate it from the associated host accounts. This helps you better perform O&M tasks. This topic describes how to create a private key and edit the information about a private key.
Background information
If you want to use a key pair to connect to assets, you can upload the private key to your bastion host instance and deploy the public key on hosts. Then, you can use the shared key feature to create the private key and associate it with different host accounts.
Create a private key
You can create a private key and associate it with one or more host accounts on your bastion host instance. After you associate the private key with one or more host accounts, the private key becomes the shared key of the associated hosts. The shared key is preferentially used to log on to the hosts on which you want to perform O&M operations.
Step 1: Create a private key
Step 2: Associate the new private key with host accounts
- You can associate a shared key only with the host accounts whose protocol is set to SSH.
- A shared key can be associated with multiple host accounts, but a host account can be associated with only one shared key.
- On the Shared Key page, find the private key in the private key list, and click Associate Host Account in the Actions column.
- In the Associate Host Account dialog box, select the host account to which you want to associate the private key and click Associate in the lower-left corner or in the Actions column of the host account.
- Then, click OK.
Edit the information about a private key
You can modify the basic information about a private key on the Basic Information tab. You can also associate a private key with a host account or disassociate the private key from a host account on the Host Account tab.