Skip to main content
GitHub Docs
All products
Authentication
Account security
Authentication to GitHub
Create a strong password
Update access credentials
Create a PAT
Reviewing your SSH keys
Deploy keys
Authorizing OAuth Apps
Authorizing GitHub Apps
Authorized integrations
Third-party applications
Review OAuth apps
Token expiration
Security log
Remove sensitive data
Sudo mode
Unauthorized access
Secure your account with 2FA
About 2FA
Configure 2FA
Configure 2FA recovery
Access GitHub with 2FA
Recover an account with 2FA
Disable 2FA
Connect with SSH
About SSH
Check for existing SSH key
Generate new SSH key
Add a new SSH key
Test your SSH connection
SSH key passphrases
Troubleshooting SSH
Recover SSH key passphrase
Permission denied (publickey)
Error: Bad file number
Error: Key already in use
Permission denied other-user
Permission denied other-repo
Agent failure to sign
ssh-add: illegal option -- K
Error: Unknown key type
SSH key audit
Verify commit signatures
Commit signature verification
Existing GPG keys
Generating a new GPG key
Add a new GPG key
Tell Git your signing key
Associate email with GPG key
Signing commits
Signing tags
Troubleshoot verification
Check verification status
Update expired GPG key
Use verified email in GPG key
Authentication
/
Secure your account with 2FA
Enterprise Server 3.5
Free, Pro, & Team
Enterprise Cloud
Enterprise Server 3.5
Enterprise Server 3.4
Enterprise Server 3.3
Enterprise Server 3.2
Enterprise Server 3.1
All Enterprise Server releases
About versions
English
English
简体中文
(
Simplified Chinese
)
日本語
(
Japanese
)
Español
(
Spanish
)
Português do Brasil
(
Portuguese
)
Search GitHub Docs
GitHub Docs
Authentication
/
Secure your account with 2FA
Authentication
Get started
Account and profile
Authentication
Repositories
Enterprise administrators
Billing and payments
Site policy
Organizations
Code security
Pull requests
GitHub Issues
GitHub Actions
GitHub Copilot
GitHub Codespaces
GitHub Packages
Search on GitHub
Developers
REST API
GraphQL API
GitHub CLI
GitHub Discussions
GitHub Sponsors
Building communities
GitHub Pages
Education
GitHub Desktop
GitHub Support
Atom
Electron
CodeQL
npm
Enterprise Server 3.5
Free, Pro, & Team
Enterprise Cloud
Enterprise Server 3.5
Enterprise Server 3.4
Enterprise Server 3.3
Enterprise Server 3.2
Enterprise Server 3.1
All Enterprise Server releases
About versions
English
English
简体中文
(
Simplified Chinese
)
日本語
(
Japanese
)
Español
(
Spanish
)
Português do Brasil
(
Portuguese
)
Search GitHub Docs
Securing your account with two-factor authentication (2FA)
You can set up your account on your GitHub Enterprise Server instance to require an authentication code in addition to your password when you sign in.
About two-factor authentication
Configuring two-factor authentication
Configuring two-factor authentication recovery methods
Accessing GitHub using two-factor authentication
Recovering your account if you lose your 2FA credentials
Disabling two-factor authentication for your personal account