"
1Password SSH Agent : Setup Guide, Private Key Export and Fixes featured image

1Password SSH Agent 2026: Setup Guide, Private Key Export and Fixes

Set up the 1Password SSH Agent step by step. Generate keys, configure SSH, approve requests, export private keys and fix common errors.

SSH keys sitting in a folder on your laptop are a quiet risk.

Any script you run could read them. You may never know.

This guide shows how the 1Password SSH Agent fixes that, step by step.

Quick answer
The 1Password SSH Agent lets Git and SSH use keys stored in 1Password, so the private key never leaves the app. Turn it on in Settings, then Developer, and point your SSH config at the agent socket. Each app must then be approved with biometrics or your account password before it can use a key.

Want the current offer? See our 1Password deals page.

What is the 1Password SSH Agent?

The 1Password SSH Agent lets Git and SSH use keys saved in 1Password. Your SSH client never reads the private key.

The developer docs say the private key never leaves the 1Password app. Only apps you approve can use it.

QuestionAnswerSource
Where keys liveInside 1Password vaultsDeveloper docs
Key typesEd25519 and RSADeveloper docs
Default vaultsPersonal, Private or EmployeeDeveloper docs
ApprovalEach app must be authorizedDeveloper docs
PlatformsMac, Windows and Linux desktop appsDeveloper docs
Unlock optionsTouch ID, Apple Watch, Windows Hello or system authDeveloper docs

In short, it replaces key files sitting in your home folder.

Why move your SSH keys into 1Password

The main reason is control. Plain key files in a .ssh folder can be read by any script you run.

The approval prompt changes that. A random script cannot quietly use your key, because 1Password asks first.

Below are the official setup steps, explained in plain language.

1Password SSH Agent vs the OpenSSH agent

Point1Password SSH AgentOpenSSH ssh agent
Adding keysNo ssh add step neededRun ssh add after each launch
Who can use a keyOnly apps you approveAny process once a key is added
Private key on diskNot stored locallyUsually a file in .ssh
Approval promptYes, with biometrics or passwordNo
When lockedKeys not kept in memoryKeys stay until removed

What you need before you start

  • A 1Password account.
  • The 1Password desktop app for Mac, Windows or Linux, signed in.
  • The browser extension, if you want to autofill public keys.
  • Optional: 1Password CLI 2.20.0 or later to create keys from the command line.

The docs list these for every plan.

Checking plan prices? See our 1Password pricing guide.

Step 1: Generate an SSH key in 1Password

  1. Open and unlock the 1Password app.
  2. Go to your Personal, Private or Employee vault.
  3. Select New Item, then SSH Key.
  4. Select Add Private Key, then Generate New Key.
  5. Choose Ed25519 or RSA, then select Generate.
  6. Select Save.
1Password Developer Docs steps to generate a new SSH key with the Ed25519 or RSA key type menu
Source: 1Password Developer Docs.

1Password creates the private key, public key and fingerprint together.

Import an existing key instead

Choose Add Private Key, then Import a Key File. You can also drag the file in or paste it.

If the key has a passphrase, enter it once and select Decrypt.

Step 2: Add your public key to GitHub

The docs use GitHub as the example. Other Git hosts work the same way.

  1. Open the GitHub SSH key settings page.
  2. Click the Title or Key field.
  3. Pick your new key from the 1Password list.
  4. Select Add SSH Key to save it.
1Password Developer Docs steps to autofill a public key on the GitHub SSH keys Add new page
Source: 1Password Developer Docs.

1Password fills the title and public key for you.

Step 3: Turn on the SSH agent

  1. Open 1Password and go to Settings.
  2. Select Developer.
  3. Select Use the SSH Agent.
  4. Choose whether to show key names in prompts.
  5. Adjust authorization settings if you like.

On Mac, open General settings too. Tick Keep 1Password in the menu bar and Start at login. That keeps the agent running.

Showing key names makes prompts clearer. 1Password then stores key titles locally to do it.

Step 4: Point your SSH client at the agent

On Mac, add this to your ~/.ssh/config file:

Host * IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"

Or set SSH_AUTH_SOCK to that same socket path in your shell.

Windows and Linux use different paths. Pick your system on the Get started page.

Want to move slowly? You can use the agent for only some hosts first.

Step 5: Test and approve

Run ssh -T git@github.com or git pull in a project.

1Password asks if the app may use your key. Approve with Touch ID, Windows Hello or your password.

After that, the same app can use the key until 1Password locks or quits. You can change that rule.

Authorization options explained

OptionWhat you approve
Per key, per application (default)One app and its subprocesses
Per key, per application, per terminal sessionOne terminal tab at a time
Per key, per requestEvery single request
Approve for all applicationsAll processes, for a short time

Pick per request for the tightest control. It means more prompts, though.

Why can I not copy my private key in 1Password?

This is a common question. The private key field works through export, not a plain copy.

  1. Open and unlock the 1Password desktop app.
  2. Open the SSH key and select the private key field.
  3. Choose OpenSSH or PKCS#8 format.
  4. To encrypt it, enter a passphrase, then Copy Encrypted Key or Download Encrypted Key.
  5. For plain text, leave the passphrase empty and choose Copy Unencrypted Key.

Encryption on export works for OpenSSH format only. A key imported as PKCS#1 can also export as PKCS#1.

1Password warns it cannot protect keys stored outside your account. Do not keep unencrypted keys on disk.

Copy the public key instead

1Password Developer Docs SSH Key item with public key Copy and Download options and fingerprint
Source: 1Password Developer Docs.

Most of the time you only need the public key. Use Copy or Download in the public key field.

Fix the too many authentication failures error

OpenSSH servers allow six tries by default. Each key the agent offers is one try.

With more than six keys, the server may refuse you. You then see Too many authentication failures.

  • Match each host to one key in your SSH config.
  • Or use SSH Bookmarks in 1Password to pair keys and hosts.
  • Or ask the server admin to raise MaxAuthTries.

Check which keys and apps used the agent

In the desktop app, select Developer, then View SSH agent.

  • Available SSH Keys shows keys the agent can offer.
  • The Activity tab shows recent requests, apps and keys.
  • You can clear the log or turn off activity recording.
1Password Developer Docs SSH agent Activity log listing apps, keys and request times
Source: 1Password Developer Docs.

On Mac and Linux, ssh-add -l lists keys when SSH_AUTH_SOCK points at the agent.

Which keys qualify? They must use the SSH Key item type. They must sit in an agent vault and be active. Archived or deleted items do not count.

Using keys from shared or custom vaults

By default the agent only offers keys from your Personal, Private or Employee vault.

To use other vaults, create an agent config file at ~/.config/1Password/ssh/agent.toml.

Keep it simple at first. Add vaults only when a team really needs shared keys.

Is the 1Password SSH Agent safe?

The security page makes three promises. Private keys never leave 1Password. They are never stored locally. They are never used without your consent.

An approval opens a session between one key and one process. A process can be a terminal tab, an IDE or a Git app.

When 1Password locks, the agent drops the keys from memory. It keeps only your approval, if you chose a time limit.

That design limits the damage from a bad script. It cannot use a key you did not approve for it.

Quick troubleshooting table

ProblemWhat to try
No prompt appearsCheck Use the SSH Agent is on in Developer settings
SSH ignores 1PasswordCheck IdentityAgent or SSH_AUTH_SOCK points at the agent socket
Agent stops after closing the appOn Mac, turn on Keep in menu bar and Start at login
Too many authentication failuresMatch keys to hosts or use SSH Bookmarks
Key missing from the agentCheck the vault, item type and that it is not archived
Key name unavailable in promptUnlock that account, or turn on key names in Developer settings

Who should use it

  • Developers who push code to GitHub, GitLab or similar.
  • Admins who log in to servers over SSH.
  • Teams that want keys in shared vaults with clear access.
  • Anyone who keeps plain key files in a home folder today.

If that sounds like you, setup takes a few steps. You can also move one host at a time.

Control key order with the agent config file

Without a config file, the agent offers every SSH key item in your Personal, Private or Employee vault. The optional agent config file at ~/.config/1Password/ssh/agent.toml lets you override that.

  • Choose keys from any vault or account, not only the default vaults.
  • Set the order the agent offers keys, so you stay under the six key limit most servers apply.
  • Keep a different file on each machine, such as one for work and one for a personal laptop.

The file uses TOML. Each entry starts with an [[ssh-keys]] header followed by one or more lines naming the item, vault or account in quotes. Header names and keys must be lowercase. The values inside quotes are not case sensitive.

FactWhat it means for you
Saved locally onlyThe file is not synced to 1Password servers
Order mattersThe first matching entry is offered to the server first
Desktop app can create itIt starts with entries for your default vaults
Delete it any timeThe agent falls back to the default behavior

If you work on several computers, sync the file yourself with Git, the same way you handle other dotfiles.

Sign Git commits with the same key

The same key that logs you in to GitHub can also sign your commits. Git 2.34 and later supports signing commits and tags with SSH keys, so no GPG key is needed.

  • Open the SSH key in the 1Password desktop app and use the option to configure commit signing. 1Password gives you a snippet for your Git config.
  • The snippet points Git at the public key and at the signer program 1Password provides.
  • Register the public key with your Git host as a signing key. On GitHub set the key type to Signing key.
  • Commit as normal. 1Password asks you to approve each signature with your fingerprint.

Signed commits matter because anyone with push rights can otherwise push commits under another person’s name. To check signatures on your own machine, create an allowed signers file that pairs email addresses with trusted public keys.

SSH Bookmarks for one click connections

SSH Bookmarks, still marked beta, let you connect to hosts straight from 1Password and tie each host to one key.

  • After you approve an ssh command from the terminal, the host appears in the agent activity list, and you can bookmark it from there.
  • You can also add the host URL, such as ssh://user@host, to an SSH Key item by hand.
  • Bookmarks then appear on the SSH agent page in the desktop app, and one click opens your terminal and starts the connection.
  • Remove a bookmark from its Actions menu, or delete the host URL from the item.

Bookmarks are a tidy fix for the too many authentication failures error, because each host uses the key you matched to it.

Pros and cons

ProsCons
Private keys never sit on diskFrequent approval prompts
Approval prompt for every new appSix key server limit needs config
Biometric unlockDesktop app must be running
Easy public key autofillPrivate key copy goes through export

Latest information about 1Password

  • First-year promo. Individual is $2.99 a month and Families $4.49 a month billed yearly, against regular prices of $3.99 and $5.99. The promo is for new customers who subscribe directly on 1Password.com with annual billing, not through app stores.
  • Free trial. Individual and Families can both be tried free for 14 days before you choose a plan.
  • Developer tools on personal plans. The plan table lists SSH workflows, Git commit signing, the CLI and SDKs for both Individual and Families.
  • Recovery codes. Individual and family accounts can create a reusable recovery code in the apps or on 1Password.com under Sign-in and Recovery.

Watch: 1Password official video

1Password SSH Agent FAQs

What is the 1Password SSH Agent?

A built in agent that lets Git and SSH use keys stored in 1Password.

How do I turn on the 1Password SSH Agent?

Open Settings, select Developer, then select Use the SSH Agent.

Why can I not copy my private key in 1Password?

Use the export option on the private key field. Choose a format, then copy or download.

Which SSH key types does 1Password support?

Ed25519 and RSA.

Does the 1Password SSH Agent work on Windows and Linux?

Yes. The docs cover Mac, Windows and Linux desktop apps.

Can I import my existing SSH keys into 1Password?

Yes. Choose Add Private Key, then Import a Key File.

Why do I get too many authentication failures?

Servers allow six tries by default. Match keys to hosts or use SSH Bookmarks.

Does the SSH agent work when 1Password is locked?

It keeps running and prompts you. You must unlock 1Password to use the keys.

Can the agent use keys from shared vaults?

Yes, with an agent.toml config file listing those vaults.

Is the 1Password SSH agent config file synced?

No. agent.toml is saved locally on each machine and is not synced to 1Password servers.

Can 1Password sign Git commits with SSH?

Yes. With Git 2.34 or later, 1Password can sign commits with an SSH key and asks you to approve each signature with your fingerprint.

What are 1Password SSH Bookmarks?

A beta feature that saves SSH hosts on your keys so you can connect from the app and match each host to one key.

Do personal 1Password plans include the SSH agent?

Yes. The plan table lists SSH workflows and Git commit signing for both Individual and Families.

Final Verdict

The 1Password SSH Agent is a strong upgrade over key files. It is easy to set up and safer by design.

Who we would recommend it to: developers already using 1Password on desktop.

What we would skip it for: headless servers with no desktop app.

For the full product view, read our 1Password review.

Roshan Jha

About the author: Roshan Jha

Roshan Jha researches password managers and credential vaults for families and small teams. On 1Pass.Coupons he documents first-year promos, plan limits and comparisons with other vaults. He helps households and small teams lock down every login without overpaying. Follow Roshan Jha on LinkedIn.

Disclosure: some links on this page are affiliate links. If you buy through them we may earn a commission, and your price stays the same.

Leave a Reply

Your email address will not be published. Required fields are marked *