Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Disable SSH on a repo mercurial

harshman_chris September 17, 2013

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
aMarcus
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2013

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.

harshman_chris September 17, 2013

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.

aMarcus
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 18, 2013

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
TAGS
AUG Leaders

Atlassian Community Events