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

This widget could not be displayed.

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

This widget could not be displayed.

Is this with the Mac or Windows version of SourceTree?

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

Test

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

134 views 16 7
Join discussion

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