Installation of local mirror-registry fails with error Permission denied (publickey)

Solution Verified - Updated -

Issue

  • Installation of the local mirror-registry as a root user fails with the following "Permission denied (publickey)" error:
fatal: [root@<hostname>]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: 
Permanently added  ‘<hostname>’ (RSA) to the list of known hosts.\r\n<hostname>: Permission denied (publickey).” “Unreachable”: true}

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4
  • mirror-registry for OpenShift

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