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

0 vote

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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
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...

2,049 views 1 5
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