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

Generate OpenSSH key by embedded Git

Dirk Surmann July 29, 2013

Hallo Atlassian-Team,

I use SourceTree with Git. To create OpenSSH key pairs, I use GitGUI. How can I use embedded Git to create OpenSSH keys?

Regards

Dirk

6 answers

1 accepted

1 vote
Answer accepted
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2013

On Windows you have the option of either using PuTTY or OpenSSH as the SSH client. We generally recommend you use PuTTY because it's Windows-native and has a system tray tool for the SSH key agent, wheras OpenSSH is primarily a Unix-style tool. We do support both, but if you've selected PuTTY as the SSH Client (this is in Tools > Options > General) then there's a menu item Tools > Create or Import SSH Keys which opens the PuTTY key generation tool. If you chose to use OpenSSH then we assume you already have SSH keys in this format and that's why you chose to use it (our setup wizard recomments PuTTY).

So usually if you have no history here I'd advise picking PuTTY in the SSH Client option and creating the key that way. But if you still want to use OpenSSH instead you can, but with the embedded git version you'll need to use ssh-keygen in the terminal (which you can launch from SourceTree using the toolbar if you want).

Dirk Surmann July 30, 2013

Hallo Steve,


thanks for your answer. I use Git to generate OpenSSH keys on Windows, because PuTTYgen do not generate accurate OpenSSH keys. I tried this way, but the line breaks in PuTTYgen keys are not accapted by bitbucket.

Thanks for the hint to ssh-keygen. No Google search give this to me.

I use system Git on my current system. When trying to launch it via Tools > Launch SSH Agent... nothing happens. Does this only work with embedded Git?

In addition: Where do I find the ssh-keygen manually?


Kind regards

Dirk

0 votes
Dirk Surmann July 30, 2013

Test

0 votes
Dirk Surmann July 30, 2013

Sorry. One always forgets the important things. It is the windows version.

0 votes
Dirk Surmann July 30, 2013

Hallo Steve,

thanks for your answer. I use Git to generate OpenSSH keys on Windows, because PuTTYgen do not generate accurate OpenSSH keys. I tried this way, but the line breaks in PuTTYgen keys are not accapted by bitbucket.

Thanks for the hint to ssh-keygen. No Google search give this to me.

I use system Git on my current system. When trying to launch it via Tools > Launch SSH Agent... nothing happens. Does this only work with embedded Git?

Kind regards

Dirk

0 votes
Dirk Surmann July 30, 2013

Sorry. One always forgets the important things. It is the windows version.

0 votes
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2013

Is this with the Mac or Windows version of SourceTree?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events