How to disable SMS option in 2FA account access, without disabling Webauthn and 2FA entirely [obsolete] #48745
Replies: 20 comments 20 replies
|
Was told a solution after asking this question elsewhere - apparently "Reconfigure" button in the top-right can replace mandatory SMS auth option with TOTP, which is still not what I'd use, but easier to forget and ignore, unlike leaving SMS one open. |
|
They also said they were working on making it possible to use security keys as the primary second factor.
|
|
I have the same question/issue, and I also don't see a "Reconfigure" button. |
|
I added an authenticator app in addition to my security keys. Once I did that, I had the option to disable SMS. |
|
I added security keys as 2FA and selected them as preferred method, but I still can't remove the SMS method. Only an "edit" button that allows to change the number, no way to disable it. EDIT: after adding the Authenticator app again, I was able to disable the SMS option. But then I can't disable the Authenticator app option. Why can security keys not be the only selected option? |
|
I'm facing the same problem. |
|
I swear if I have to solve that puzzle one more fkn time I'll go sterile. I've added SSH keys, passkeys, my blood type and sacrificed the artworks of several small children. Where is the SMS 2fa removal or 2fa reconfigure process, button or altar of mammon so I can access an organisation I belong to? |
|
Just found the solution!! |
|
I want to use just WebAuthn and recover codes, and not have to set up TOTP as well. Having to set up SMS or TOTP regardless of any other authentication method sucks. WebAuthn is more secure than other methods, and there's no reason to decrease security by requiring SMS/TOTP as well. |
Hi, try this
Notes
|
|
What worked for me:
|
|
Hey guys, this is kinda fucked up. I wanted to enforce 2FA and "secure 2FA" on my organization (eg, no SMS) and its causing trouble for newcomers: if they have 2FA enabled with SMS, basically, we can do nothing. Not cool :/ |
|
Guys, I've just helped one lost soul to sort this issue out. I'm not sure if you've tried that before, but a simple way to deal with it is to ensure you have a Authenticator and/or Mobile flow active and then start the sign in in Incognito mode. That guarantees you don't have any session details, cookies etc. It seems to be pretty effective in exposing the Edit/Delete on the SMS/Text message. |
|
Hi @mk-fg 👋, Currently, GitHub requires you to first set up either an authenticator app (TOTP) or SMS as your primary 2FA method. Once you have done that, you can add GitHub Mobile or Security Keys as an additional 2FA option, which allows you to verify sign-ins directly from your device. After enabling 2FA, GitHub provides a set of recovery codes. Download these codes and keep them in a secure, offline location. These are extremely important—if you lose access to all your 2FA methods and your recovery codes, it may be difficult to restore access to your account. You can find more information in the official GitHub documentation. Thank you! |
|
I had to set up an Authentication app as a 2fa option before it gave me the option to disable sms. Once I had setup an authentication app, three dots appeared on the the sms option giving an option to disable |
|
@james-ecd : indeed. You do need to have these two methods in place in order to kick the 3rd one out. This is what we've noted as well. Summarising:
|
|
This implementation by GitHub is absolutely bonkers. How do any of these make any sense?
All the way through the multi-auth set up, GitHub is like "No you don't need to remove your weakest link! Please don't!" while trying to obstruct the way to remove those weaker links. I even contacted GitHub support a year+ ago. Got no response back of course. Until I read this thread about how to remove SMS auth. |
|
Just add your security key and your authenticator app to your GitHub account. |
|
in 2026, you have to first download a auth app (e.g. Google/Microsfot Auth) from app store then register that app as auth method, then you are allowed to delete text message option. It kinda sucks but make sense since Github enforces auth app for a long time (since 2016) |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
EDIT:
THIS IS OBSOLETE (as of April 2023), and no longer how that UI looks and works on github!
There is no "Reconfigure" button anymore, likely because it's now possible to do without it.
Select Topic Area
Question
Body
I have and want to have two-factor authentication enabled, but only with strong methods that are useful to me, like Webauthn, and disable terrible insecure methods that can easily be used to bypass these entirely.
But under "Password and Authentication" - "Two-factor authentication", github lists "SMS/Text message" as one allowed 2FA method, which is definitely not the one I want to have, as it is rather trivial and cheap to attach new SIM to any phone with local carriers (or mostly their minimally-paid staff rather).
I can click "Edit" on that SMS authentication method and enter a different phone, but I see no way to disable or remove it.
Is there a way to disable "SMS/Text message" second-factor authentication method?
And if not, why not? Maybe it can be a request for improvement in Github's currently-broken 2FA instead.
Here is how configuration screen looks for me (after clicking on "..." next to SMS 2FA method):

2FA is required by an org, but that doesn't mention SMS anywhere specifically, and 2FA shouldn't be assumed to be SMS.
Having SMS method force-enabled makes 2FA rather pointless for me - anyone, with at least some minor local knowledge and ~$50, can just ignore whatever I setup there, SMS-bypassing it all, and then do whatever they want on my github and wherever I have commit access to.
This is not about "Fallback SMS number" recovery, which I never setup and indeed can be disabled, but rather disabling (and ideally never even allowing) SMS as a 2FA method to log into my github account.
Thanks in advance for any assistance.
All reactions