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

Best way to handle Github authentication in WSL? #99

Open
jhofman opened this issue Jun 1, 2022 · 2 comments
Open

Best way to handle Github authentication in WSL? #99

jhofman opened this issue Jun 1, 2022 · 2 comments
Assignees

Comments

@jhofman
Copy link
Contributor

jhofman commented Jun 1, 2022

@SoyBison: a few students are having trouble with authenticating their GitHub accounts on the command line. It seems most are using https access to their repos and then having to type their username and a personal access token to push.

let's find a better way that's low cost and doesn't involve installing special tools?

can you check here for options that work on Ubuntu on Windows?

i believe i used credential.helper in the past, but don't face this myself because i use ssh instead of https (but don't think that's worth the hassle for them to set up).

@SoyBison
Copy link
Contributor

SoyBison commented Jun 1, 2022

Github has phased out support for HTTPS using credential.helper, so they will have to either use the github cli or set up ssh keys. Or use the authentication tokens.

https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
The official instructions for linux worked fine for me on WSL, but I will have to set up a new ssh key today anyway so I can test it.

@SoyBison
Copy link
Contributor

SoyBison commented Jun 1, 2022

https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

Just tested it on a fresh ubuntu for WSL install and these two links handled it perfectly.

@SoyBison SoyBison pinned this issue Jun 1, 2022
@jhofman jhofman unpinned this issue Jun 21, 2023
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