Cannot Clone Git Repository During OpenShift Build with Putty SSH Key

Solution Verified - Updated -

Issue

  • Loaded the SSH key into the OpenShift Online secret config assigned it to the build config
Cloning "ssh://git@example.org/someuser/test.git" ...
error: build error: Warning: Permanently added 'example.org' (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

Environment

  • 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.