Reputation: 964
I am trying to deploy Jersey project with openshift eclipse plugin but I am getting this error Authentication failed. Please make sure that you added your private key to the ssh preferences
I have gernerated to ssh key and saved it in the .ssh directory. I added this key on the openshif- seetings- add new key- I named it id_rsa like my stored one in the .git directory.
openshift ssh key:
Upvotes: 0
Views: 789
Reputation: 3454
The Eclipse tooling needs the private key that matches your public key in OpenShit. Otherwise git in Eclipse cannot clone the git repo in OpenShift. Make sure that you have the private key set in the Eclipse SSH2 preferences.
Another possible reason is (i dont habe enough details to know) if you're telling the OpenShift host to install a cartridge that is available in source from a git repo that OpenShift should clone. The above error shows you using an ssh-git-url. In this case you would have to make sure that the OpenShift host has the private key to clone from the git repo with the source code. This known issue is easily to work around using cartreflect as descrbed here:
For details on how to install the PRIVATE ssh key in OpenShift so that it can clone using an ssh-git-url look here:
Cheers André
Upvotes: 1