How to add Include statement in the /etc/ssh/sshd_config file in RHOCP4

Solution Verified - Updated -

Issue

  • How to add Include statement in the /etc/ssh/sshd_config file in RHOCP4?
  • After upgrading from RHOCP 4.12 to 4.13 it was not possible to ssh into the nodes so to fix this issue impose adding the Include /etc/ssh/sshd_config.d/*.conf statement in /etc/ssh/sshd_config file.

  • Accessing a node using SSH failing with the follwoing message after openshift upgrade:

    $ ssh -i sshkey core@10.0.0.1
    core@10.0.0.1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.12 (preparing to upgrade to 4.13+)
    • 4.13
    • 4.14

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