8.7.2.2. Manage static keys


You can add a statically managed public SSH key when you create a virtual machine (VM) by using the OpenShift Container Platform web console or the command line. Save the key to a project to add it automatically to every VM that you create there.

You can also add a public SSH key to a project when you create a VM by using the web console. The key is saved as a secret and is added automatically to all VMs that you create.

참고

If you add a secret to a project and then delete the VM, the secret is retained because it is a namespace resource. You must delete the secret manually.

8.7.2.2.1. Add a static SSH key by using the web console

You can add a statically managed public SSH key to a virtual machine (VM) in the creation wizard of the OpenShift Container Platform web console. The key is added at first boot and does not affect the cloud-init user data.

You can also save the key to the project as a secret so that it is added automatically to the VMs that you create in the project.

Prerequisites

  • You generated an SSH key pair by using the ssh-keygen command.

Procedure

  1. In the OpenShift Container Platform web console, start creating a VM by using the creation wizard until you reach the Customization page.
  2. Click the SSH tab.
  3. Beside Public SSH key, click Edit.
  4. Select one of the following options:

    • Use existing: Select a secret from the secrets list.
    • Add new: Add a key by performing the following steps:

      1. Browse to the public SSH key file or paste the file in the key field.
      2. Enter the secret name.
      3. Optional: Select Automatically apply this key to any new VirtualMachine you create in this project.
  5. Click Save.
  6. Complete the remaining wizard steps to create the VM.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동