ghi icon indicating copy to clipboard operation
ghi copied to clipboard

How do we set ghi to use ssh keys?

Open CodyKochmann opened this issue 7 years ago • 2 comments

We have a specific setup for our git server that doesn't really allow us to use github's username/password to sign in due to a custom 2 factor auth. Because of this, we have to do everything with ssh keys only. Is there a way to configure ghi to use ssh keys? or is this out of ghi's realm at this point?

If this is a duplicate question, please link the issue that it relates to. I couldn't find anything when I was poking around in the issues.

CodyKochmann avatar Jun 08 '17 15:06 CodyKochmann

I had the same issue. AFAIK you can use personal access token by running

git config github.host <your github host>
git config ghi.token <your personal access token>

inside git directory.

You can also configure it globally by adding --global (so it will change to git config --global ghi.token...)

kamilzych avatar Aug 11 '17 10:08 kamilzych

I would much prefer ssh keys honestly, having a github token in my git config is quite a vulnerability...

xeruf avatar Mar 28 '20 13:03 xeruf