Start Pageant Using Private Key File with No Extension

I'm using SourceTree 1.9.6.1 on Windows 7 Enterprise SP1.

I have a private key file that I generated with PuttyGen and saved to a file with no file extension.  I can load the file fine from Pageant and SSH functions in SourceTree work fine after doing so.

I have configured the SSH Key option in SourceTree with the path to my PK file.

image2016-8-18 16:19:11.png

However, the key is not loaded into Pageant when SourceTree launches Pageant during startup.  I am also prompted to load the key file if Pageant is not running and I use the Launch SSH Agent... function from the Tools menu.  If I say Yes and browse to the file, the SSH Key option is automatically configured with the correct path to the extensionless file, as I would expect.

If I add the .ppk extension to the file everything works as expected.  Pageant is launched during SourceTree startup and my key file is loaded by Pageant.  Also, launching Pageant from the command line with the path to the extensionless file works fine.

This is clearly not high priority issue, rather a minor annoyance, but I thought I would submit something on it anyway.

Edit:

Bug reported: https://jira.atlassian.com/browse/SRCTREEWIN-6187

1 answer

1 accepted

Have you tried launching pageant from the command line using a parameter to have it immediately load the key? This is probably what SourceTree does behind the scenes, and if pageant doesn't load the key when specified on the command line, it's a pageant issue, not a SourceTree one.

However, if that works fine, you should submit a bug report to jira.atlassian.com.

If you want to quit relying on SourceTree to launch Pageant, you can follow these steps to get Pageant to launch with your key: http://blog.shvetsov.com/2010/03/making-pageant-automatically-load-keys.html

Yes, mentioned the command line launch in the post.  I guess I should have looked deeper into submitting bug reports!  I'll do that.  Thanks!

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

238 views 0 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot