Nam G VU
Nam G VU

Reputation: 35374

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

Upvotes: 11

Views: 3692

Answers (2)

Nathan
Nathan

Reputation: 7709

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

Upvotes: 3

Holi
Holi

Reputation: 384

It can be a rare case, but if it could help at least someone: For me perosnally, having the same issue after installing gitkraken, it did help to restart the computer after installation. Everything worked then.

Upvotes: 0

Related Questions