How to connect OpenShift with a private BitBucket Repository

Kil'jaeden picture Kil'jaeden · Feb 23, 2014 · Viewed 17.3k times · Source

I want to host a website on OpenShift but I want my code to synchronize automatically with a "free but private" service like Git, so I found BitBucket.

I tried to connect it by my self by pasting this key from my OpenShift app:

ssh://[email protected]/~/git/XXXXXXXXXX.git/

into:

BitBucket -> Repository -> Import Repository -> Old Repository.

But I get this error:

Unsupported protocol. Please use 'http://', 'https://' , 'svn://' or 'git://.

I believe I have the same issue as this guy: https://www.openshift.com/forums/openshift/connect-to-bitbucket-repository-from-openshift-app

But I don't understand how to apply this solution. Before you ask, yes I'm new to Github, BitBucket and OpenShift etc.

Answer

Kil'jaeden picture Kil'jaeden · Feb 24, 2014

After a lot of searching on Google I found the solution...

I suggest to people with (almost) the same issue as I had, or who are also beginners like me with OpenShift and BitBucket to read and understand this well written tutorial by Redhat: https://www.openshift.com/developers/install-and-setup-putty-ssh-client-for-windows

After that small tutorial, I was able to connect OpenShift with BitBucket through SourceTree.