GitHub to require 2FA on accounts by October 6, 2023

Xylight (Photon dev)@lemmy.xylight.dev to Technology@lemmy.ml – 395 points –
Raising the bar for software security: GitHub 2FA begins March 13
github.blog

I personally am fine with this.

129

You are viewing a single comment

Print off your recovery codes and keep them safe. If you want to be extra, hammer them into metal plates like the crypto weirdos do.

Printing recovery codes would require me to either be price gouged by the printer ink cartel or use someone else's printer, and using someone else's printer is begging to get my account stolen.

I have no idea how to hammer things into metal plates, but I'm guessing that's even more expensive than printer ink.

Just use your pen and paper.

I can do that with alphanumeric codes, yeah, but can I get alphanumeric codes from GitHub, or is it going to be a QR code? I can't write down a QR codeā€¦

QR codes are just an encoding. Just use any half-competent QR code app, and it will give you it's content, which you can then write down. For the reverse you can use any QR code generator.

How do I feed the generated QR code back to GitHub, then? Can I upload an image of it?

Have you ever used any website with 2FA? You don't need to upload QR codes.

I've only used SMS and Steam 2FA so far. I've been avoiding 2FA as much as I can.

Okay, so generally the way it works is you have some app (e.g. Google Authenticator, 1password, Aegis, Bit warden -- anything that supports TOTP). When you enable 2FA for a site, it'll give you a QR code. You scan that with your app and then the app gives you a six digit code that changes every 30 seconds.

The QR code is really just an easy way to get a long string of characters into your app, though, and if the QR code doesn't work there should be an option to see the raw code and manually enter it.

You enter that code in once to confirm that you have actually set up the 2FA. Then it will show you a list of recovery codes. It'll only show you these once; it doesn't store them anywhere. You need to note them down in whatever way suits you best (I print mine; you could also just write them down). You cannot see these again. The best you can do, if you still have access to your account, is generate new ones (probably by disabling and re-enabling 2FA)

Now, whenever you login, you'll be asked for your authenticator code (much like an SMS). You just open whatever app you used and enter in whatever code it's currently showing (remember it's time based).

If your authenticator app gets messed up somehow, you can recover it using your recovery codes.