Skip to content

Instantly share code, notes, and snippets.

View am5a03's full-sized avatar
🤔
To be or not to be

Raymond Chan am5a03

🤔
To be or not to be
  • Hong Kong
View GitHub Profile
@am5a03
am5a03 / github_multiple-accounts.md
Created February 14, 2019 02:40 — forked from JoaquimLey/github_multiple-accounts.md
How to Work with GitHub and Multiple Accounts

Step 1 - Create a New SSH Key

We need to generate a unique SSH key for our second GitHub account.

ssh-keygen -t rsa -C "your-email-address"

Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.

Step 2 - Attach the New Key