This is a handy link to help set up SSH keys for working with github.
https://help.github.com/articles/generating-ssh-keys
Below are some of the commands:
ls -al ~/.ssh ssh-keygen -t rsa -C "your_email@example.com" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa pbcopy < ~/.ssh/id_rsa.pub
After pbcopy, just head over to Github Account Settings to add your SSH key.