English
  • Home
  • Documentation
  • HCI
  • 5. Generate and Add SSH Private Key: NetApp HCI for Red Hat OpenShift on RHV

5. Generate and Add SSH Private Key: NetApp HCI for Red Hat OpenShift on RHV

Contributors netapp-dorianh Download PDF of this topic

To generate and add an SSH private key, complete the following steps:

  1. For the installation debugging or disaster recovery on the OpenShift cluster, you must provide an SSH key to both the ssh-agent and the installation program. Create an SSH key if one does not already exist for password-less authentication on the RHEL machine.

    [user@rhel7 ~]$  ssh-keygen -t rsa -b 4096 -N '' -f ~/.ssh/id_rsa
  2. Start the ssh-agent process and configure it as a background running task.

    [user@rhel7 ~]$  eval "$(ssh-agent -s)"
    Agent pid 31874
  3. Add the SSH private key that you created in step 2 to the ssh-agent , which enables you to SSH directly to the nodes without having to interactively pass the key.

    [user@rhel7 ~]$  ssh-add ~/.ssh/id_rsa