Disable SSH on a repo mercurial

Hello,

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.

Thanks

1 answer

1 accepted

0 votes
Answer 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
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

282 views 0 12
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