Disable SSH on a repo mercurial


I am looking to turn off ssh on either a single repo or my account as a whole so I can give access easier to other people without having to set them up with keys.


1 answer

1 accepted

SSH is not required for anyone. The clone option only defaults to SSH if you have keys, otherwise the default option is HTTPS. There isn't, and won't be a way to disable using SSH as it is more secure.

Can you explain in more detail how I can set this up then? I am not following you completely.

Right now I have a repo with ssh, if I want to use https on it, do I just change the url and it will default back to the password method?

actually I guess that is how you do it, I tried it and it worked so thank you.

This is mostly correct. If you already cloned the repository using SSH, you'll need to change your remote setting in Git. To do this:

git remote -v

This will show the current repository URL aliases.

Find the one that looks like ssh: git@bitbucket.org:[your username]/[your repo].git

Remove that entry.

git remote rm origin

Then add the new HTTPS URL

git remote add origin https://bitbucket.org/[your username]/[your repo slug].git

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

31,474 views 26 12
Join discussion

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