Cannot Clone Git Repository During OpenShift Build with Putty SSH Key
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, tools, and much more.