stephencelis / ghi

GitHub Issues on the command line. Use your $EDITOR, not your browser.
Other
2.14k stars 142 forks source link

How do we set ghi to use ssh keys? #346

Open CodyKochmann opened 7 years ago

CodyKochmann commented 7 years ago

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.

kamilzych commented 7 years ago

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...)

xeruf commented 4 years ago

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