1Ɨ
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Generate SSH Keys for your GitHub Accounts

    bashBash

    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