getting the https url of a bitbucket repo from a ssh url

Hello friends:

Thank You for your time and attention in advance.

I am in a situation where I have clone a Bitbucket repo with a ssh url.  It works well.

But for sharing info with other teams and other members of our team I would like to send a https url.

For example I have

ssh://git@bitbucket.es.ad.adp.com:7999/upenv/configuration-values.git

How to get the https equivalent of that aka

https://abcd@bitbucket.es.ad.adp.com/scm/upenv/configuration-values.git

 

Kindly help.

-Narahari

1 answer

Hi Narahari,

The best way is for the user to obtain the URL using the UI.

You could also get the Clone URL by using a REST endpoint - no need to use a browser, if that's your situation. I explained that on https://answers.atlassian.com/questions/39424368. Note that the output contains both HTTP and SSH clone URLs.

If the users already have the SSH URL, deriving the HTTP url is easy; as you can see the only difference is the SCM and also the port; you seem to be running Bitbucket behind a proxy which is the reason why you don't specify the port number.

I hope that helps.

Thiago

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

662 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot