5. Generate and Add SSH Private Key: NetApp HCI for Red Hat OpenShift on RHV
Contributors Download PDF of this topic
To generate and add an SSH private key, complete the following steps:
For the installation debugging or disaster recovery on the OpenShift cluster, you must provide an SSH key to both the
ssh-agentand 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
ssh-agentprocess and configure it as a background running task.
[user@rhel7 ~]$ eval "$(ssh-agent -s)" Agent pid 31874
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