Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SourceTree terminal automatically load ssh key

There are some tasks that are only possible/easier to do in git bash (or Terminal) than in SourceTree. I have most of my repositories on bitbucket and use ssh key.

enter image description here

The problem I have is that even though I load my key with SourceTree (Pageant putty client) the terminal requires me to load it again. It can be a pain with longer keyphrase as well as once the terminal is closed and opened again it is required to enter password again.

enter image description here As you can see agent is running, key is loaded, but I am still asked to enter my passphrase in git terminal/git bash.

Is there a way to load the key only once?

Thank you

like image 991
rluks Avatar asked Nov 28 '16 20:11

rluks


People also ask

How do I link my SSH key to SourceTree?

From Sourcetree, open the PuTTY Key Generator dialog by going to Tools > Create or Import SSH Keys. Click Load, navigate to your SSH folder, and click the private key. Make sure you're looking at All files if you don't see your private key. Enter your passphrase for the SSH key and click OK.

How do I link my SSH key to Bitbucket?

From Bitbucket, go to the repository and click Repository settings. Click Access keys from the left menu. Press Add key. From the Add SSH key dialog, enter a Label and paste the public key from the clipboard.


1 Answers

In sourcetree settings, do you have the

Automatically start SSH agent when SourceTree opens checkbox selected?

like image 74
FullStack Avatar answered Sep 22 '22 21:09

FullStack