Pageant doesn't save keys

System:

Windows 7

SourceTree 0.9.4.0

Pageant started by SourceTree



Problem:

- Try to sync repository with local git server (gitolite) with user gitolite@git.local

- SourceTree wants a password which is not necessary

- Open Pageant and import the SSH key for that server

- Everything runs smooth than

- Restart computer / start SourceTree / try to fetch => asking again for a password

- Open Pageant results in an empty Pageant

=> So I have to manually readd my keys to Pageant which is very very annoying!

4 answers

This widget could not be displayed.

I know I'm over five years late to the party, but in case it helps anyone else I had this same issue after creating new keys. I needed to open Tools > Options and on the General tab change the "SSH Key" field to reflect the new name for my private key.

This widget could not be displayed.

Pageant doesn't remember its keys unfortunately, but if SourceTree launches Pageant it should pass the contents of the 'SSH Key' setting in Preferences - what does yours say?

When I've tried this with my key present in that SSH Key setting, Pageant always starts up with that key loaded (after I type the passphrase).

shaun-vorster I'm New Here Sunday

Thank you very much!

This widget could not be displayed.

Okay, this works perfectly for one key. Is there any chance to give just a folder with public keys or even an option to grab keys from the user .ssh folder? Because I have multiple keys for multiple servers in use.

Thanks so much!

We do support multiple keys with OpenSSH because you can add them incrementally from the Tools menu after the agent has launched (after which they they appear in the SSH key field in preferences separated by ';'). So far haven't supported that with Pageant because you can't add keys incrementally like that once Pageant is running (at least not from outside it's own interface) - it only works when you launch Pageant with all the keys at once on the command line (see Vincent's answer below about how he does that in his Startup folder - personally this is how I do it too, simply because I use other PuTTY tools outside of SourceTree too).

I will look at supporting multiple keys if you manually configure the SSH key field instead with ';' characters, although that would only work the next time Pageant is re-started.

This widget could not be displayed.

The only way that I found was using http://blog.shvetsov.com/2010/03/making-pageant-automatically-load-keys.html which describes how to make a shortcut for pageant that will load multiple keys (but you must still enter the passphrases for those encrypted keys). When I power on my computer I start pageant using the shortcut, enter the passphrases and then I start SourceTree.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

874 views 2 3
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