Cannot Clone Git Repository During OpenShift Build with Putty SSH Key

Solution Verified - Updated -


  • Loaded the SSH key into the OpenShift Online secret config assigned it to the build config
Cloning "ssh://" ...
error: build error: Warning: Permanently added '' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
  • Key works on local machine


  • Red Hat OpenShift Container Platform
    • 3.x
  • Red Hat OpenShift Online
    • v3

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