You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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 "1stEmail@example.com"# 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 "2ndEmail@example.com"
Create ~/.ssh/config file to manage both keys
Add the following to ~/.ssh/config
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