How to Turn On 2FA for GitHub

Please note: Specific instructions for enabling 2FA are subject to change without notice. Please check with each website or app for the most up-to-date information on this feature.

Two-factor authentication for Github involves an authentication code delivered to your cell phone that's generated by an application on your smartphone or sent as a text message (SMS). After 2FA is enabled, GitHub generates an authentication code that is sent to your phone any time someone attempts to sign into your GitHub account. The only way someone can sign into your account is if they know both your password and have access to the authentication code on your phone. This tutorial focuses on the SMS method.

1. In the top right corner of any page, click the Settings icon.

3. In the user settings sidebar, click “Security.”

4. Under Two-Factor Authentication, click “Set up two-factor authentication.”

5. On the Two-Factor Authentication page, click “Set up using SMS.”

6. Select your country code and type your mobile phone number, including area code. When your information is correct, click “Send code.”

6. You’ll receive a text message with a security code. Type the code on the 2FA page, and click “Enable.”

For more information visit:

All trademarks are property of their respective owners. This site makes every reasonable effort to keep the information accurate and up-to-date. If you have feedback regarding the instructions above, please email

Two-factor authentication (2FA)
Learn more
2FA for the sites and apps you use
Learn more