| 28 | |
| 29 | === Set up ssh on your computer === |
| 30 | |
| 31 | see github’s guide to generating SSH keys. |
| 32 | |
| 33 | Look to see if you have files ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub. |
| 34 | |
| 35 | If not, create such public/private keys: Open a terminal/shell and type: |
| 36 | |
| 37 | `$ ssh-keygen -t rsa -C "your_email@example.com"` |
| 38 | |
| 39 | Paste your ssh public key into your github account settings. |
| 40 | |
| 41 | Go to your github Account Settings |
| 42 | |
| 43 | Click “SSH Keys” on the left. |
| 44 | Click “Add SSH Key” on the right. |
| 45 | |
| 46 | Add a label (like “My laptop”) and paste the public key into the big text box. |
| 47 | |
| 48 | In a terminal/shell, type the following to test it: |
| 49 | |
| 50 | `$ ssh -T git@github.com` |
| 51 | |
| 52 | If it says something like the following, it worked: |
| 53 | |
| 54 | `Hi username! You've successfully authenticated, but Github does |
| 55 | not provide shell access.` |
| 56 | |
| 57 | |