-
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 asking for username and password when used with ssh protocol #3011
Comments
I've tried both of these:
I have URL replacement on to force ssh instead of https on github, but both above configs also fail, even if I turn replacement off:
macOS 10.15.7 |
Yeah, hub has not been usable for anything for the last six months. Only auth errors and no prompting to authenticate using browser or similar. |
OK It's not just me. Same issue. Edit: You need to use PAT as password (#2655 (comment)) |
That is a workaround, not a fix for the broken 2FA handling. A better workaround is to just ditch Hub for the official GitHub CLI, as Hub is essentially deprecated: https://mislav.net/2020/01/github-cli. All of Mislav's efforts go into that these days and I have been able to transition from all current Hub commands to |
Command attempted:
hub clone dot-files
What happened:
promts for username
More info:
git config --global hub.protocol
ssh
hub --version
git version 2.37.0 (Apple Git-136)
hub version refs/heads/master
OS
macOS 12.6 (21G115)
Giving full URL works fine for e.g.
hub clone git@github.com:metapraveen/dot-files.git
clones the repo via ssh authThe text was updated successfully, but these errors were encountered: