SSH Keys for Github

How to authenticate to github using SSH keys

The complete instruction on Github

Create a key in the default location without any passphrase (or add one if you like). Then add it to the ssh-agent.

ssh-keygen -t rsa -b 4096 -C "[email protected]"
ssh-add ~/.ssh/id_rsa

Copy the key into the clipboard

cat ~/.ssh/

Go into your profile and select SSH and GPG keys, click Add SSH key, add a description and paste the key.