Requirements
- Mac
- Windows
- Linux
- Sign up for 1Password.
- Install and sign in to 1Password for Mac.
- Install the 1Password browser extension (optional).
Required to autofill SSH keys in your browser.
Configuration
By default, the 1Password SSH agent will make every eligible key in the built-in Personal, Private, or Employee vault of your 1Password accounts available to offer to SSH servers. This configuration is automatically set up when you turn on the SSH agent. If you need to use the SSH agent with keys saved in shared or custom vaults, you can create and customize an SSH agent config file (~/.config/1Password/ssh/agent.toml) to override the default agent configuration.
If you have more than six SSH keys available in the agent, you can edit your SSH config file or use SSH Bookmarks to match your keys to specific hosts. This will help you avoid authentication failures with OpenSSH servers that limit the number of connection attempts. Learn more about the SSH server six-key limit.
Eligible keys
For the 1Password SSH agent to work with your SSH keys, your 1Password SSH key items must meet the following requirements. They must be:- Generated or imported using the
SSH Keyitem type (which supportsEd25519orRSAkey types). - Stored in the vaults the SSH agent is configured to use in 1Password. By default, this is the Personal, Private, or Employee vault of any 1Password account you’re signed in to.
- Active items (not archived or deleted).
SSH_AUTH_SOCK environment variable (Mac and Linux only) and run: