You can either reuse your key pair already in your directory, or create a new key pair specifically for using github. If you decide not to use the default pair, you will need to modify your file ~/.ssh/configand add the host definition for Github, pointing it to the new key file. So, if your new key pair github_rsaand github_rsa.pub, put these lines in /.ssh/config:
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/github_rsa
Now, when you perform push or push operations before git@github.com, an alternate authentication file will be used.
source
share