2FA セットアップガイド
GitHub アカウントで 2FA を有効にする方法
2026年6月5日を更新しました
2 要素認証 (2FA) は、パスワードが漏洩した場合でも、GitHub アカウントを保護します。 iPhone、iPad、または Mac で Authenticator App を使用して GitHub 検証コードを生成するには、以下の手順に従ってください。
Download Authenticator App
Download Authenticator App from the App Store on your iPhone, iPad or Mac. It's free and no sign-up is required.
Open GitHub security settings
Click your profile photo → “Settings” → “Password and authentication”.
Enable two-factor authentication
Click “Enable two-factor authentication” and choose “Set up using an app”. GitHub will display a QR code.
Scan the QR code with Authenticator App
Open Authenticator App, tap the + button and scan the QR code shown by GitHub. If you can't scan it, choose the manual option on GitHub and type the setup key into the app instead.
Enter the 6-digit verification code
Type the 6-digit code from Authenticator App back into GitHub to confirm the setup. The code refreshes every 30 seconds.
Save your backup codes
If GitHub offers backup or recovery codes, download or write them down and store them somewhere safe. They let you regain access if you ever lose your device.
Authenticator App を入手
GitHub から QR コードをスキャンし、iPhone、iPad、Mac 上で安全なワンタイム コードを生成します。無料、アカウントは必要ありません。
アプリをダウンロード