- Create a repo.
- Generate ssh key:
$ ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa_github -C "comment"
- Copy the contents of the file
~/.ssh/id_rsa_github.pubto your SSH keys in your GitHub account settings. - Add entry to
~/.ssh/configwith rights 0400:
...
host github.com