This question is in reference to Atlassian Documentation: Two-Factor Authentication (2FA) with GitHub in SourceTree
I set up 2FA for GitHub with a Yubikey this works fine when I use git from the command line.
But when I use it with SoureTree I get an error message:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin refs/heads/master:refs/heads/master Pushing to git@github.com:the4thfloor/test.git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Pushing to git@github.com:the4thfloor/test.git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Pushing to git@github.com:the4thfloor/test.git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Pushing to git@github.com:the4thfloor/test.git Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Completed with errors, see aboveCompleted with errors, see above
When I call this command on command line I get this output
$ git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin refs/heads/master:refs/heads/master Pushing to git@github.com:the4thfloor/test.git Counting objects: 3, done. Delta compression using up to 8 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 944 bytes | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), completed with 1 local objects. To github.com:the4thfloor/test.git 0c607d1..9a695cf master -> master updating local tracking ref 'refs/remotes/origin/master'
What can I do?
This does still does not work reliably.
This remains a terrible and broken user experience.
You are forcing people to choose between good security (2FA) or using your software.
Answer is here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.