8.7.2.3. Manage dynamic keys
You can enable dynamic SSH key injection for a virtual machine (VM) that runs Red Hat Enterprise Linux (RHEL) 9, and then update the public SSH key while the VM is running.
Only Red Hat Enterprise Linux (RHEL) 9 supports dynamic key injection.
If you disable dynamic key injection, the VM inherits the key management method of the image from which it was created.
8.7.2.3.1. Enable dynamic SSH key injection by using the web console 링크 복사링크가 클립보드에 복사되었습니다!
You can enable dynamic SSH key injection in the OpenShift Container Platform web console for a virtual machine (VM) that runs Red Hat Enterprise Linux (RHEL) 9, and then update the public SSH key while the VM is running.
The key is added to the VM by the QEMU guest agent, which is installed with Red Hat Enterprise Linux (RHEL) 9 and later.
Prerequisites
- The guest operating system is RHEL 9 or later.
Procedure
-
Navigate to Virtualization
VirtualMachines in the web console. - Select a VM to open the VirtualMachine details page.
- On the Configuration tab, click Scripts.
If you have not already added a public SSH key to your project, click the edit icon beside Authorized SSH key and select one of the following options:
- Use existing: Select a secret from the secrets list.
Add new:
- Browse to the SSH key file or paste the file in the key field.
- Enter the secret name.
- Optional: Select Automatically apply this key to any new VirtualMachine you create in this project.
- Set Dynamic SSH key injection to on.
- Click Save.