ssh-keygen -t rsa -C “your_email@youremail.com”
#Creates a new ssh key using the provided email
Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa):<press enter>
Enter passphrase (empty for no passphrase):<enter a passphrase> Enter same passphrase again:<enter passphrase again>
Your identification has been saved in /home/user/.ssh/id_rsa.
cat /home/username/.ssh/id_rsa.pub
go to github.com, login, Account Settings, SSH public Keys, Add Key