We use 1Password to manage SSH keys. This keeps private keys off the disk and allows Touch ID authorization.
- Open 1Password Settings > Developer.
- Enable "Use the SSH agent".
- In 1Password: New Item > SSH Key.
- Title: "GitHub Auth".
- Save.
This is handled automatically by the Fish config in dotfiles, which sets SSH_AUTH_SOCK.
- Open the Key in 1Password.
- Copy the Public Key.
- Go to GitHub Keys.
- Add New Key (Paste the public key).
- Important: Select Key Type "Authentication" (and repeat for "Signing" if needed).
Run this in terminal. 1Password should pop up asking for Touch ID.
ssh -T git@github.com