Skip to end of metadata
Go to start of metadata

You can use SSH URL with Sourcetree. Sourcetree relies on the same SSH accounts you create when you are working from the command line. If you haven't already created an SSH key for your Bitbucket account, see Use the SSH protocol with Bitbucket.

  1. Make sure you have already used ssh-keygen to create an identity on your system.
  2. Start Sourcetree.
  3. Choose Add repository.
  4. Supply the SSH source path from Bitbucket.
  5. Enter a Destination Path.
    At this point the dialog looks something like this:
  6. Press Clone.
    If the key is not in your key chain, the system will prompt you for it.

You are ready to start using your repository.

6 Comments

  1. Anonymous

    I can't recognize the usefulness of this FAQ article, besides the only note to go visiting the Sourcetree documentation.

    1. Well, you don't have to use the article. In the last month, this article actually received 767 hits and people who landed here spent an average of 4 minutes on the page. Users get here through Google search which doesn't work with Sourcetree documentation which is in the application.

  2. Anonymous

    Is there a way to set it to work with a standalone ssh fronted git server, that uses two factor auth rather than key auth?

    1. That I do not know.  You can ask this on answers.atlassian.com as that is pretty active with Sourcetree.

  3. Anonymous

    I think the reason people spent so long on the page is that its very confusing. I stuck on the page for a while re-reading it.    Is there a simple page that shows the process of setting up a ssh key using source tree and importing it into bitbucket... I can't seem to find it... or get it working on windows.  

  4. Anonymous

    I think for those using custom name for ssh-keygen, you need to add ssh-add command. You can check Set up SSH for Git and Mercurial on Mac OSX/Linux -> Step 4. Start the ssh-agent and load your keys. I manage to use SourceTree to add my custom SSH Key. Good Luck!