How to Connect to Github with Multiple Accounts and SSH Keys

Photo by Jude Al-Safadi

If you have multiple accounts with Github and private repos, it is sometimes necessary to switch between the accounts to do whatever git things that you need to do.

Here’s how you can switch easily.

1. SSH Keys Setup

Assuming we have 2 Github accounts, let’s setup the 2 different keys: