1. 1
    Generate SSH Keys for your GitHub Accounts
    2m 1s

Generate SSH Keys for your GitHub Accounts

InstructorRyan Harris

Share this video with your friends

Send Tweet

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