GitHub organization accounts should use an authenticator app, disable text-message 2FA, and add a security key after setting up another method.
Key takeaways
- Each person has their own GitHub account, and organization membership reflects their current role.
- An authenticator app is turned on and tested for every account.
- Security keys are added for high-access accounts, after the authenticator app is working.
- The recovery plan is written down, lists who holds each method, and is stored where the office controls it.
Who this guide is for
If you are the only person in your office who knows how the computers work, you probably also set up the GitHub accounts that hold the office's code, scripts, and shared documents. This post compares the three two-factor sign-in options you will see on GitHub and suggests a setup order for accounts that several staff members depend on.
Two-factor authentication, usually called 2FA, adds a second check after the password. A strong password can still be guessed, reused, or typed into the wrong page, so the second check matters. CISA's guidance on passwords makes the broader point: "This authentication process is more important and more difficult in the cyber world." You can read the whole page at CISA, "Choosing and Protecting Passwords". The hard part for a one-person IT team is making sure the second check protects the account without locking out the people who need it on a busy Tuesday.
This is not a guide to every GitHub security setting. It focuses on three choices: which second factor to turn on for each account, which one to avoid for office work, and how to keep the account recoverable when a phone breaks or a person leaves.
Why office accounts need a different plan
A personal GitHub account belongs to one person. An office account may own repositories the whole team uses, hold documents a bookkeeper needs, or receive notifications several people act on. When the account is tied to one phone in one drawer, the office has a single point of failure.
Three things make office accounts harder than personal ones. The person holding the second factor changes as staff move on, take leave, or get new devices. Many people use a personal phone for their authenticator, and that phone goes home with them. And there is often one person who knows how the account is protected. If that is you, the account is only as recoverable as your notes.
The goal is simple. Every person signs in with a second factor they control, and the office never depends on one phone or one person's memory.
One practical rule comes first. Where you can, give each person their own GitHub account and add them to the organization, rather than sharing one login. A shared login means the second factor cannot tell you who signed in. Individual accounts cost a little more setup time and save a lot of trouble later.
The three methods at a glance
- Authenticator app (TOTP). An app on a phone or computer shows a short code that changes over time. The person types the current code when GitHub asks for it.
- Text message (SMS). GitHub sends a code to a phone number on the account. The person types the code they receive.
- Security key. A small physical device that the person plugs in or taps when GitHub asks for the second factor.
The three are not equal in how they fit GitHub's rules. A security key is added on top of another method rather than used alone, and text messages have a restriction that applies to organization work.
Method 1: An authenticator app (TOTP)
A time-based one-time password (TOTP) app is the method most office setups should start with. The person installs an authenticator app on a device they carry, links it to their GitHub account, and enters the code it shows at sign-in. Because the code changes on a schedule, a code someone overhears stops working quickly.
GitHub's configuration page is direct about where this method fits in an organization: "To continue working on content within an organization, enable 2FA with a TOTP application and disable SMS 2FA." If your staff work on organization content, that sentence is the anchor for your plan.
Here is what to check when you set it up.
- Test the sign-in before you close the setup page. Open a fresh private window, sign in, and enter the code from the app. A setup that has never been tested is not finished.
- Pick one app as the office standard. Mixed apps create confusion when someone changes phones and has to re-link an account. Write down which app each person uses.
- Plan for a new phone. The safest time to move an authenticator to a new device is before the old one is wiped or sold.
- Decide who holds the backup path. Whatever recovery route you get when the app is lost, record where it is stored and who may use it. Do not keep it only in your head or in a personal email inbox.
- Keep the app on the device people carry daily. A staff member who travels or leaves a phone at a client site will hit this problem otherwise.
The main downside is that the app lives on a device. A lost or replaced phone with no backup route can lock someone out. That risk is manageable if you plan for it. See the guide to storing recovery codes when recording the backup path.
Method 2: Text message (SMS)
Text message 2FA sends a code to a phone number on file. It is the easiest option for someone who does not want to install anything, which is why it appears in so many small setups. For an office, it also carries the most cautions.
The page on changing your two-factor authentication method sets out the first requirement: "Before using this method, be sure that you can receive text messages." Test whether the number receives texts before relying on it. A number may take calls but not texts. A staff member abroad may not have roaming turned on. Test the number yourself, from the phone that will receive the code, before you rely on it.
The same configuration page adds that outside collaborators "may not enable SMS 2FA if their organization or enterprise has disallowed it." If your office works with contractors who have their own GitHub accounts, do not assume text messages are available to them.
For organization work, then, disable text messages rather than keeping them as a fallback. A few practical problems apply even apart from GitHub's rules:
- The number is tied to a carrier account. A changed number can leave the account stuck until someone updates it from another route.
- Shared numbers defeat the purpose. When several people see the same codes, the second factor means nothing.
- Check whether a desk phone receives texts. If it cannot, this method will not work with that number.
- Codes sometimes arrive late. Staff should know that asking for a new code is normal, not an error.
Text messages have one real advantage: nobody has to install an app. That makes them a reasonable choice for someone uncomfortable with apps, as long as the number works and the account is not organization content under GitHub's rule.
Method 3: A security key
A security key is a small physical device. The person taps it or plugs it in when GitHub asks for the second factor. Because the check is a device rather than a code the person types, it avoids some steps that trip people up with apps and texts. It is worth considering for the people with the most access.
A security key is an add-on, not a first step. The configuration page says that registering a key is "available after enabling 2FA with a TOTP application or a text message." In practice, you cannot register a key on an account with no 2FA method turned on. You turn on the authenticator app first, confirm it works, and then add the key.
When you weigh keys and apps against each other, look at the cryptography as well as the convenience. NIST's digital identity guidelines include this rule for verifiers run by federal agencies: "Cryptography used by verifiers operated by or on behalf of federal agencies at AAL2 SHALL be validated to meet the requirements of [FIPS140] Level 1 unless otherwise specified." This requirement concerns federal verifiers; it does not establish whether an office security key meets those requirements.
For an office, a key suits the people who sign in most often to organization work, such as the IT person, a finance lead, or whoever approves changes to shared code. A backup key kept somewhere else is a common way to avoid lockout if the first key is lost.
The limitations are practical:
- Keys must be bought, labeled, and tracked. Keep a simple log of which key belongs to whom and where the spare is stored.
- A key can be left behind. A key in a laptop bag at home is not available at the office.
- Check the connection type before buying. A key that plugs into one kind of port may not fit the laptops your staff use.
- Some staff will resist it. Explain the reason and keep the process short.
A security key does not replace the recovery path. It sits next to the authenticator app and your notes, not in place of them.
Side-by-side comparison
| Question | Authenticator app (TOTP) | Text message (SMS) | Security key |
|---|---|---|---|
| What the person carries | Illustrative: a phone or computer with the app | Illustrative: a phone that can receive texts | Illustrative: a physical key |
| Fit for organization work | Illustrative: use TOTP | Illustrative: disable SMS 2FA | Illustrative: added on top of TOTP, not used alone |
| Main risk | Illustrative: a lost or replaced phone with no backup route | Illustrative: a number that changes or stops receiving texts | Illustrative: a lost key, or no port that fits the laptop |
| Best use in an office | Illustrative: default for every staff member | Illustrative: accounts outside organization work, where allowed | Illustrative: owners and approvers |
The authenticator app is the starting point; a security key is an addition, and SMS should be disabled for organization work. That is why the setup order matters.
A setup order for a one-person IT team
This order is a recommendation based on the rules above. It is designed so you do not lock yourself out while changing settings. For broader planning, see the MFA rollout checklist.
-
Give each person their own account. Add them to the organization so that organization work sits under the right accounts. The other steps depend on knowing who owns each account.
-
Turn on an authenticator app for every account. The configuration page's prerequisite means 2FA must already be configured before adding a security key. Set up the authenticator app for organization work. Test each sign-in in a fresh session.
-
Add security keys for the high-access people. Once the authenticator app works, register a key on the accounts that need it most.
-
Turn off text messages for organization work. Do this only after confirming every account can sign in with the authenticator app, so you do not remove your own way back in.
-
Write the recovery plan. Record which method each person uses, where the backup material is stored, and who can help if a phone or key is lost. Store the plan somewhere the office controls, not only on your own laptop.
-
Test again after a few days. Ask one or two staff members to sign in on their own devices. Problems often appear later, when someone has a different phone or works from another location.
If you already have accounts using text messages, move them one at a time in this order, and keep the old method on until the new one has been tested.
Illustrative example: changing staff accounts
An office has 10 staff accounts using text messages. Move through the setup order one account at a time: enable the authenticator app, test sign-in, then disable text messages for organization work. Add a security key for anyone who needs one after the app works. Record each account's backup location and helper before moving to the next account. This illustrates the sequence, not a measured result.
Keeping access when people leave or change phones
Review sign-in access when a person leaves, when a phone is replaced, or when a new hire takes over a role.
When someone leaves, remove their access the same day. Review what they owned, including repositories, documents, and notifications they handled.
When a phone is replaced, re-link the authenticator before the old phone is wiped or handed in. Confirm the sign-in from the new device while the old one still works. If the old phone is already gone, use the backup route you wrote down, then add the new device right away.
Passkeys change one part of this picture. For accounts without 2FA, the configuration page says a passkey skips the new-device email check. Know which sign-in path each person uses.
When a role changes hands, do not give the new person the old person's phone or key. Each person should set up their own second factor, since shared devices make it impossible to tell who signed in.
Keep the recovery notes simple: a short table with each person's name, method, backup location, and helper. Update it whenever someone joins, leaves, or changes devices. Do not store codes in a shared spreadsheet, a chat thread, or an email that several people can open, because the codes then become a second password for anyone who finds them.
Two-factor sign-in is one of the few security changes everyone can see and feel. Done well, it protects the office's work without getting in the way. Done carelessly, it leaves one person holding the keys and nobody else able to get in. Plan the order, test each step, and write down what you did.
What to do today
Choose one account and test its authenticator sign-in in a fresh private window. Record the result, backup location and helper before changing another account.
Related guides: Change a 2FA method: 3 vendor limits compared · EAP methods for office Wi-Fi: 3 options compared · Backup retention settings: 4 tools compared.
Questions about GitHub 2FA
Does a security key replace the recovery plan?
No, a security key does not replace the recovery plan. Keep the backup location and helper recorded even after adding a key.
When should staff move an authenticator to a new phone?
Move the authenticator before wiping or handing in the old phone. Confirm sign-in on the new device while the old one still works.