I recently purchased a YubiKey for two-factor authentication, but I don't know how to connect it to GitHub.
Can anyone help me?
CodePudding user response:
Step 1: Enable Two-factor authentification on your GitHub account
- Sign in to your GitHub account.
- Click your profile picture in the top right of the screen.
- Select Settings
- In the left panel, select Security
- Click Enable two-factor authentification
- Choose the method of you want to receive one-time passwords, Set up by using an app or Set up using SMS
Step 2: Adding your Yubikey for two-factor authentification
- Sign in to your GitHub account.
- Click your profile picture in the top right of the screen.
- Select Settings
- In the left panel, select Security
- To the right of "Security keys", click Add.
- Insert your YubiKey into USB port.
- In the Security keys section, click Register new device.
- Type a nickname for your YubiKey, then click Add.
- Wait your YubiKey to begin flashing, then tap the gold button or edge.
For more information: https://yubikey.com.ua/en/using-yubikey-with-github/
