-
Notifications
You must be signed in to change notification settings - Fork 630
Two Factor Authentication
Randy McDermott edited this page Jun 3, 2016
·
6 revisions
These instructions assume that you cloned your repo using https (not ssh).
- Download and install the windows credential store software .
- Run the software you just installed. You only need to do this once.
- 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.
- 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.
- Download and install the putty software
- Run the PuTTYgen program to generate an SSH key. Select the SSH-2 RSA option.
- Save the public and private keys in a directory.
- Load the private key using the Pageant program
- Copy the public key (as seen on the PuTTYgen screen ) to github in the ssh keys menu
- Define an environment variable named
GIT_SSH
and give it the valueplink
These instructions assume that you cloned your repo using ssh (not https).
- 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