How the oc debug command works in OpenShift
Try a new way to connect to and debug your Red Hat OpenShift Container Platform cluster nodes.
Kedar Vijay Kulkarni
Wed, 2/17/2021 at 12:40am
Image
Image by Dr StClaire from Pixabay
If you have used relatively recent versions of OpenShift, you must have come across the oc debug command (or you can check this man page). One of the interesting things about the new OpenShift is that it suggests not to use SSH directly (you can see this in sshd_config on the nodes because they have PermitRootLogin no set on them). So if you were to run oc debug node/node_name, it will create a pod for you and drop you in the shell (TTY) of this pod.
Topics:
Linux
Openshift
Read More at Enable Sysadmin