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

This widget could not be displayed.

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,317 views 8 11
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