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

Github Enterprise using ssh? #1612

Closed
eng618 opened this issue Oct 30, 2017 · 4 comments
Closed

Github Enterprise using ssh? #1612

eng618 opened this issue Oct 30, 2017 · 4 comments

Comments

@eng618
Copy link

eng618 commented Oct 30, 2017

I was trying to use some of the extra feature like git issue and git browse but when I do so in a GHE repo it asks for username and password; however, my GHE account is restricted to only shh access. Is there a way to utilize this, or am I setting this up incorrectly?

I added my GHE host name with git config --global --add hub.host github.COMPANY.com

which added it to the .gitconfig as:

[hub]
  host = github.COMPANY.com
@cbcoutinho
Copy link

Is that the first time you used hub? When I first used hub I had to log in (including two factor authentication). That was only for using hub, not cloning the repo, for which I also use ssh.

I'm not sure if that applies to GHE

@eng618
Copy link
Author

eng618 commented Dec 4, 2017

Yes, this is the first time using hub. WIth my GHE account though we do not have the option for basic auth...it is routed through SSO so whatever credentials I put in fail.

@mislav
Copy link
Owner

mislav commented Jan 23, 2018

Try generating a Personal Access Token from your GitHub Enterprise settings (web interface) and adding something like this to your ~/.config/hub:

yourdomain.com:
- user: eng618
  oauth_token: YOURTOKEN
  protocol: https

Sorry that this is inconvenient. We will be working on trying to make this more convenient: #225

@mislav mislav closed this as completed Jan 23, 2018
@eng618
Copy link
Author

eng618 commented Jan 23, 2018

thanks @mislav that is good enough for me

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

3 participants