# this is the main email to be use with github
# filename: ~/.ssh/rsa_id
ssh-keygen -t rsa -f ~/.ssh/id_rsa -b 4096 -C "[email protected]"
# this is the main email to be use with github
# filename: ~/.ssh/rsa_id_othername
ssh-keygen -t rsa -f ~/.ssh/id_rsa_othername -b 4096 -C "[email protected]"
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
Host github-othername
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_othername
[remote "origin"]
url = git@github-othername:username/reponame.git