In some cases, you may have multiple GitHub accounts that you need to interact with from the same system. For example, you could have an account for work and another for personal projects, but you don't want to re-authenticate each time you switch between then. By using public SSH keys for each account, you can eliminate this part of the process.
In this lesson, we will create two SSH keys in our terminal using ssh-keygen
, copy them to our clipboard using pbcopy
and then add them to our respective GitHub accounts.
Commands we'll be using include:
ssh-keygen
ls
pbcopy