Skip to content

Two Factor Authentication

Randy McDermott edited this page Jun 3, 2016 · 6 revisions

Setting Up Two-Factor Authentication

Windows

These instructions assume that you cloned your repo using https (not ssh).

Using A Personal Access Token

  1. Download and install the windows credential store software .
  2. Run the software you just installed. You only need to do this once.
  3. Go to your github settings page and create a personal access token . Make sure you save this token for when you need to set up 2 factor authentication on other computers.
  4. The first time you need to authenticate with your git repo (typically when you do a push) the credential software will ask you for your user name and password. Use the access token you created in step 3 for the password. From now on you should not need to enter your user name or password.

Using SSH keys generated by Putty

  1. Download and install the putty software
  2. Run the PuTTYgen program to generate an SSH key. Select the SSH-2 RSA option.
  3. Save the public and private keys in a directory.
  4. Load the private key using the Pageant program
  5. Copy the public key (as seen on the PuTTYgen screen ) to github in the ssh keys menu
  6. Define an environment variable named GIT_SSH and give it the value plink

Linux/Mac

These instructions assume that you cloned your repo using ssh (not https).

  1. Got to your ssh github settings page and add an ssh key ( see this page ) if you haven't set up ssh keys yet. Your ssh key is typically found in the file ~/.ssh/id_rsa.pub . The key could be in some other .pub file in ~/.ssh

You will need to do this for each Linux/Mac computer you use to access your github repo

Clone this wiki locally