How do we set ghi to use ssh keys?
CodyKochmann opened this issue · 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.
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...
)
I would much prefer ssh keys honestly, having a github token in my git config is quite a vulnerability...