Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set custom ssh key in sourcetree

I'm using SourceTree for macos, when I add account, choose ssh key option is missing. It allows me to use only id_rsa, but I have to use separate key ~/.ssh/custom_github.

Any idea how can I proceed?

enter image description here

like image 364
Arkadi Avatar asked Dec 18 '25 10:12

Arkadi


2 Answers

I was having the same problem on mac. There was no option within SourceTree to change keys.

However, I did use the information here to get around it.

This will generate a new key from within SourceTree for a particular account.

Not the exact fix you wanted but got me over the problem.

like image 52
Zack D Avatar answered Dec 21 '25 04:12

Zack D


A dirty workaround:

  1. Generate new RSA keys through sourcetree interface
  2. Using Terminal or iTerm2: go to .ssh folder in your user profile
  3. Delete generated keys, they are likely to follow sourcetree naming convention: username-Bitbucket.pub
  4. Create a link to your own keys with ln -s
like image 21
Mike1979 Avatar answered Dec 21 '25 03:12

Mike1979



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!