Two Github Accounts with Two SSH Keys
To use two different GitHub accounts, one for work and one for personal use, you will need to create two separate RSA keys.
Create Two RSA keys Here are the steps to create two RSA keys:
Open your terminal.
Input the following command, replacing “email@example.com” with your email address:
ssh-keygen -t rsa -C "[email@example.com](mailto:email@example.com)"
When asked to enter a file in which to save the key, type in a unique name for each key.