SSH fails with Permission denied error in RHOCP 4

Solution Verified - Updated -


  • Permission denied when doing SSH to any random node in the cluster.
$ ssh -i <key-path>
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
  • However, the debug method to connect with the nodes is working perfectly.
$ oc debug node/
Starting pod/ ...
To use host binaries, run `chroot /host`
Pod IP: xx.xx.xx.xx
If you don't see a command prompt, try pressing enter.


  • Red Hat OpenShift Container Platform 4
  • Red Hat Core Operating System

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content