-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
hub create returns 401 error bad credentials on WSL/Ubuntu #2665
Comments
@l1chtlaerm Sorry for the trouble! First, you should try updating to the latest version of hub available. Yours is more than 6 years out of date. If your package manager does not offer the latest version of hub, you can follow our installation instructions to download one manually. Next, you should go online and generate a Personal Access Token for hub that you will paste in place of a password. #2655 |
I'm having problems using the tokens to log in so trying to update to the latest version https://github.com/github/hub/releases/tag/v2.14.2 on windows ubunto. I can only manage to get the version 1.12.4 using sudo apt install hub. |
Hi! I was wondering if you managed to update to the latest version of Hub?? I am having the same issue and even if I get a new token it doesnt work
Hi! I was wondering if you managed to update to the latest version of Hub?? I am having the same issue and even if I get a new token it doesnt work |
No sorry, still haven't managed to get it to work. |
Hello don't know if someone figured it out yet, but this is what worked for me: First I generated a new personal token on the developer's settings.
Saved it, then it worked |
react-gifs git:(master) hub create github.com username: l1chtlaerm github.com password for l1chtlaerm (never stored): Error creating repository: Unauthorized (HTTP 401) Bad credentials. The API cant be accessed using username/password authentication. Please create a personal access token to access this endpoint: http://github.com/settings/tokens
I do not have a ~/.config/hub file nor is it created when running hub create. I do have a SSH key for this particular instance. I do not experience this issue on native Ubuntu, but I do experience it on WSL 2 running Ubuntu 18.04. I've also noticed that even after trying to update git and hub separately hub remains as an older version than available. I do not know if this is related to the issue.
Another thing to note: trying to run hub browse on my own cloned repository throws a 401 "Unauthorized (Net::HTTPServerException) after inputting credentials:
The text was updated successfully, but these errors were encountered: