Stuart Taylor 7da04a348b fix: Update packages and fix local dev (#26907)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

- [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `master` branch of freeCodeCamp.
2018-10-23 18:48:46 +05:30

1020 B

title
title
How to authenticate with GitHub using SSH

How to authenticate with GitHub using SSH

Check that there are no rsa files here before continuing, use:

ls -al ~/.ssh

If there is nothing to list (i.e. : No such file or directory) then use:

mkdir $HOME/.ssh

If there's nothing there then generate a new keygen with:

ssh-keygen -t rsa -b 4096 -C your@email.com

Now using ls -al ~/.ssh will show our id_rsa.pub file.

Add the SSH key to the SSH agent:

eval "$(ssh-agent -s)" # for mac and Linux from bash
eval `ssh-agent -s`
ssh-agent -s # for Windows

Add RSA key to SHH with:

ssh-add ~/.ssh/id_rsa

Copy your key to clipboard

clip < ~/.ssh/id_rsa.pub # Windows
cat ~/.ssh/id_rsa.pub # Linux

Go to your GitHub settings page and click the 'New SSH key' button paste in your generated key.

Then authenticate with:

ssh -T git@github.com