Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get GitKraken feature working - "Use local SSH agent"

In brief

What is the proper way to set SSH keys in GitKraken to work with different git github/bitbucket repos?

Full details

The feature is snapshot as below in GitKraken preference. When I check Use local SSH agent, git pull/push/... commands stop working. Using git command from console works normally for me.

Currently I have to uncheck it, and select the ssh key I want to use which is quite tiring when working with multiple git repo providers.

My google search and search on our site result litle helpful, so I asked here.

enter image description here

like image 490
Nam G VU Avatar asked Feb 22 '18 08:02

Nam G VU


1 Answers

Are you running gitkraken under linux? For me the problem was, that I had to export SSH_AUTH_SOCK for gitkraken to find the agent.

So I start gitkraken like this:

SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" /usr/share/gitkraken/gitkraken
like image 147
Nathan Avatar answered Sep 28 '22 00:09

Nathan