Add SSH key to OpenShift 4
Add SSH key to OpenShift 4
To add an SSH key if one was not provided during installation, perform the following from an admin account such as system:admin
:
---
# oc debug node/<NODE_NAME>
$ chroot /host
$ mkdir /home/core/.ssh
$ vi /home/core/.ssh/authorized_keys
$ chown core:core -R /home/core/.ssh/
$ chmod 644 /home/core/.ssh/authorized_keys
---
Borrowed from Ryan Howe.