Skip to content

Instantly share code, notes, and snippets.

@edwhad
edwhad / 1password_ssh_agent_wsl_multiple_github_accts.md
Last active May 22, 2025 06:06
How I configure multiple GitHub accounts using the 1password SSH agent (and working in WSL!)

How I use 1Password to manage SSH keys for multiple GitHub accounts (including on WSL)

If you don't care about why or how this works, you can skip right down to Setup Steps

A little bit of background

These are the considerations I tried to satisfy while researching this solution:

  1. I prefer not to generate new SSH keys for every machine/VM/environment where I use git or SSH. I end up with tons of keys per GitHub account or remote server, and I don't remember which is which.
  2. I want to keep private keys secured somewhere that is not directly accessible on the filesystem. Also try to avoid copying private keys around at all costs.