Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues to authentication using ssh key or token #2262

Closed
moliv0 opened this issue Sep 9, 2019 · 1 comment
Closed

Issues to authentication using ssh key or token #2262

moliv0 opened this issue Sep 9, 2019 · 1 comment

Comments

@moliv0
Copy link

moliv0 commented Sep 9, 2019

Hi Guys.
I use Enterprise GitHub, the regular user authentication does not work.
I have git config --global --add hub.host github.XXXX.com
I have also set git config --global hub.protocol ssh
but the it keep me asking the password to authenticate.
I would like to know if there are any way to force the ssh key or token to connect?

Thanks

@mislav
Copy link
Owner

mislav commented Sep 10, 2019

Hub requires your GitHub username/password on first run to authenticate. This is separate from ssh authentication on git push/pull #1644 (comment)

A way to side-step this for your Enterprise instance would be to append this to ~/.config/hub:

github.XXXX.com:
- user: YOURUSER
  oauth_token: PERSONALTOKEN

where "PERSONALTOKEN" would be the value of your Personal Access Token that you can generate in the web interface by going to https://github.XXXXX.com/settings/tokens

@mislav mislav closed this as completed Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants