Generate OpenSSH key by embedded Git

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

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).

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

Is this with the Mac or Windows version of SourceTree?

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

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

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

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

65 views 0 11
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