Skip to main content

Identity and keys

Private keys do not live in this repo or on disk. The checked-in files are selectors, public keys, and agent config.

SSH agent

SSH is wired to the 1Password agent socket through:

The 1Password agent key set is configured by:

Installed target:

~/.ssh/config

Public keys on disk

Git uses public-key paths as identity selectors. The matching private keys stay in 1Password.

Templates:

Work vs personal switching

The work/personal split combines:

  • .isWork at chezmoi init time.
  • git includeIf path rules.
  • separate public-key selectors.
  • pass store switching helpers.

For the operational steps, see Switching work vs personal identity.

Troubleshooting

echo "$SSH_AUTH_SOCK"
ssh-add -l
git config --show-origin --get core.sshCommand

If identity did not switch, verify the repo path first. The automatic work identity path is ~/work/... on non-work machines.