Catalog / GitHub

GitHubGitHub · 1 countries

Phone Number for GitHub 2FA via SMS

Choose a country — the code arrives in your dashboard within seconds.

from $0.26~30 s to code↺ money back if no code arrives
Code
United States+1 100 60% 12 ₴

GitHub 2FA is something every developer meets sooner or later: GitHub requires two-factor authentication from everyone who publishes code. A phone number isn’t mandatory, but SMS is the only way to get the code without an authenticator app. GitHub only sends SMS to countries on its list, and Ukraine isn’t on it. Below: which 2FA method to choose, which country’s number works, how to set up SMS and how not to lose an account full of repositories.

Does GitHub need a phone number?

Not at sign-up: an email, password and username are enough, and the email is confirmed by a code sent to your inbox.

According to GitHub’s documentation, an account falls under mandatory 2FA if you act as a contributor: create a repository release, publish an app or an action. You then get 45 days to set it up plus a 7-day grace period. After that, logging in to github.com is blocked until 2FA is on. Existing tokens keep working, but you can’t create new tokens or authorize apps.

GitHub says plainly that mandatory 2FA doesn’t mean you must give your number. A number is needed only if you choose SMS.

GitHub 2FA methods: which to choose

MethodHow it worksNotes
TOTP appA code from an authenticator that refreshes every 30 secondsGitHub recommends it
SMSA code by text messageA fallback, not supported in every country
PasskeyPasswordless login from a deviceRequires TOTP or SMS first
Security keyA WebAuthn hardware keySecond factor only, after TOTP or SMS
GitHub MobileLogin approval in the appRequires TOTP or SMS first

A practical setup for most developers: a TOTP app as the main method, a passkey for fast login and SMS to a number that will definitely stay with you as a fallback. Some organizations and enterprise accounts restrict members whose 2FA uses SMS, so check your company’s policy first.

Which countries GitHub sends SMS to

GitHub only sends SMS to countries on its list, where delivery is reliable enough. As of December 2026 the list has about 105 countries and territories, but Ukraine isn’t among them, nor are Moldova or Kazakhstan. The list changes from time to time, so check it in GitHub’s documentation.

  • You live in the UK: a UK number is on the list.
  • You are Ukrainian: a Ukrainian number won’t do for SMS 2FA; take a number from a listed country, such as Poland, Estonia, Germany, Georgia or the US.
  • Whichever country: rent the number, because you will need the code in a month and in a year.

How to turn on SMS 2FA on GitHub

  1. Click your profile picture and open Settings.
  2. Under Access, choose Password and authentication.
  3. In Two-factor authentication, click Enable two-factor authentication.
  4. Pass the CAPTCHA and go to SMS setup.
  5. Choose the country code, enter the number and request a code.
  6. Enter the SMS code and continue.
  7. Download the recovery codes and confirm you have saved them.

After setup the account enters a 28-day check-up period. If you successfully use your second factor at least once in that time, the check-up ends. Otherwise GitHub asks you to perform 2FA on day 28, so the number must still be reachable then.

Turning on SMS 2FA on GitHub
  1. 1SettingsPassword and authentication
  2. 2Enable two-factorchoose SMS as the method
  3. 3Countrymust be on GitHub’s SMS list
  4. 4Codeenter the SMS code
  5. 5Recovery codesdownload and store them offline

How to get a number for GitHub with NOMEROK

1Pick a country
2Get the number
GitHub+48 512 *** 921
3The code is in your dashboard
Verification code482 913 received
  1. Create a NOMEROK account and top up using Apple Pay, Google Pay or any Visa or Mastercard card (the monobank checkout accepts European cards too), or crypto such as USDT and BTC through Trybit.
  2. Choose GitHub and a country on GitHub’s SMS list, for example the UK, Poland or Estonia.
  3. Take a rental: you will need codes when logging in from new devices and on day 28.
  4. In Settings → Password and authentication choose SMS, enter the number and the code from your dashboard.
  5. Download the recovery codes and keep them in a password manager.

How much does a GitHub number cost?

The GitHub price is live: it changes by country and supplier, and the chart and table below always show the current one. You pay from a UAH balance, and the GitHub row shows a rough US dollar equivalent. For GitHub, check the country against the SMS list first and the price second: the cheapest country in the chart won’t help if GitHub doesn’t send SMS there. Since the number is for 2FA, compare the monthly rental in your dashboard. All rates are on the prices page.

Single-use number or rental for GitHub?

OptionDurationFor GitHub
Single-use number20 minutes for the SMSNot suitable for SMS 2FA: the next code on a new device won’t arrive
Rentalfrom 1 day, then monthly with renewalSMS as the main or fallback 2FA method

GitHub asks for the SMS code at every login from a new browser or device. If the number closes, access depends only on recovery codes. So for 2FA choose a number rental: it renews in one click. The most robust setup is an authenticator as primary, with the rented number and recovery codes as backup.

GitHub SMS not arriving: what to check

The country isn’t supported

If the number’s country isn’t on GitHub’s list, delivery isn’t guaranteed. Take a number from a listed country or use an authenticator.

Number format

Pick the country code and enter the number without the leading zero.

The code never came

On a single-use number, after 20 minutes the money returns to your balance (see the refund terms). On a rental, request the code again after a minute.

Lost access to GitHub 2FA: what to do

  • A recovery code is the fastest way; each code works once.
  • A passkey or security key, if you added one.
  • An account recovery request. If you know the password, GitHub sends a one-time code to your verified email. Then you prove your identity with a verified device, SSH key or personal access token. Review can take up to three working days.

GitHub no longer lets you set up a backup SMS number in addition to the main one. Without codes and recovery methods, according to the documentation, GitHub support won’t restore access. Save the recovery codes right after setup: that matters more than the choice of method.

How to protect your GitHub account

  • Turn on 2FA early, without waiting for the 45-day deadline.
  • Don’t enter codes on pages opened from “suspicious activity” emails; check the github.com address.
  • Review SSH keys and tokens in settings and remove unused ones.
  • Keep personal and work accounts apart if your company has its own security policy.

Working with other developer services? See numbers for Microsoft and OpenAI.

We don’t help mass-create accounts or get around bans. That breaks GitHub’s rules and our acceptable use policy.

FAQ

Do I need a phone number to sign up for GitHub?
No. An email, password and username are enough. A number is needed only if you choose SMS for 2FA.
Does GitHub send SMS to Ukrainian numbers?
As of December 2026, Ukraine isn’t on GitHub’s SMS list. Use an authenticator or a number from a listed country.
Does a UK number work for GitHub SMS 2FA?
Yes, the UK is on GitHub’s list of supported countries. Check the current list in the documentation.
How long do I have to enable mandatory 2FA?
45 days to set up plus a 7-day grace period. After that, github.com login is blocked until 2FA is on.
Can I add a second backup SMS number?
No, GitHub no longer allows a backup SMS number. Use recovery codes, a passkey or a security key instead.
Will a single-use number work for GitHub 2FA?
No. A code is needed at every login from a new device, and a single-use number closes after 20 minutes. Rent one.
What is the 28-day 2FA check-up?
After setup GitHub waits 28 days for you to use your second factor at least once. If you don’t, it asks you to on day 28.
Can GitHub support turn off my 2FA?
No. If both the second factor and all recovery methods are lost, GitHub doesn’t restore access.
Will GitHub ask for a 2FA code on git push?
No. Git in the terminal uses an SSH key or personal access token. 2FA is asked at website login and app authorization.
Can I use a free public number for GitHub 2FA?
No. A public number lets anyone read your 2FA codes, and GitHub accounts often hold access to code and secrets. Use an authenticator app or passkey, with a rented number from a supported country, such as a US number, as SMS backup.