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

0 votes
Accepted answer

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 Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

433 views 6 9
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