Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Can SourceTree use ssh keys in a non-standard location



My work Win10 machine has a "mapped" Home drive, call it "H:".  Due to some recent issues I had to delete my local "profile".  Before I did the delete I copied the ".ssh" dir and other things off to the H drive for safe keeping.  I now wonder if I can configure Sourcetree to look in that non-standard location for the ssh keys?

2 answers

This isn't an answer but I had to do something... I moved the .ssh dir back from the mapped H drive mentioned above to my local "profile".  I had to reestablish the remote info via:

git remote rename origin old-origin
git remote add origin
git push -u origin --all
git push -u origin --tags

0 votes
Ana Retamal Atlassian Team Nov 02, 2018

Hi! Have you already tried the option 'Load an existing private key file' as shown in our documentation? Are you able to select your SSH key location?

Let us know!

Thanks, I have active ssh keys, this page seems to only tell me how to generate new ones. 

My keys are not sitting is the "default" location that putty creates (C:\Users\me\.ssh).  Instead, they are on a mapped drive (H:\.ssh).  My guess is that Sourcetree only know to look in the .ssh directory in the user's home directory.

I have tried going to Tools -> Options and setting the "SSH Client Configuration" section but that has not worked.

I may have to move the .ssh dir back to the "normal" location


I have tried creating a windows "junction" to link to the mapped drive location.  That is not working.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,939 views 127 27
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you