It doesn't have to be via your phone if you don't want it to be. You can buy a YubiKey or similar, or use something like https://github.com/simnalamburt/macos-totp-cli (I haven't tried it, just the first thing I found in a google search).
This made me think for a moment. Why not, though?
My password manager generates random passwords with numbers, special characters and whatnot with a length of 24 characters. Even I don't know most of my passwords at this point, so what's the problem with (secure) passwords?
Poor application security? That's not really my problem, is it?
edit: to add this. I know that "test123" would be a problem, but my secure passwords can not be guessed by anybody or really be bruteforced. so, what does 2FA really protect me from in those cases?
I don't trust Microsoft with my phone, and I don't want logging into my account to become a pain where I need a key. I'll just take my code elsewhere.
> Passwords alone are not good enough security.
Security will only ever be as good as the weakest part - and I happen to find phones pretty weak.
There are other options
It’s also built into some password managers
Mine is a Casio CG50 and this tool can do it: https://github.com/gbl08ma/utilities
Forced 2FA on everyone is non-sense. Everyone should decide on their own what is enough security. All I had was a Linux repo mirror, with signed tags for tested releases of my kernel branches.
Zero security issues with that distribution method. 2FA is only useful for veryfying user logins, not repo content.
Anyway, they can do whatever they want. GIT is thankfully fully distributed repository management system, so github.com is quite optional.
I think MFA is important for something like code repositories.
https://megous.com/dl/tmp/egrdxmmfuiakyhkodsok.webm
This is what you get if you pay, too.
> I think MFA is important for something like code repositories.
I think it's not, because they can't be secured by it. As a code user I can't be sure repo was not tampered with, just because some service promises to use 2FA to authorize developer access to the repo.