Best for · Password managers

Bitwarden SSH agent: how to set it up and where it falls short

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • it if you already keep your passwords in Bitwarden and want private keys out of ~/.ssh and behind an approval prompt.

Compared here

  • 01Bitwarden desktop SSH agent
  • 02Native OpenSSH agent
  • 031Password SSH agent

Short answer

Yes, Bitwarden has an SSH agent, and it lives in the desktop app. Turn on Settings, Enable SSH agent, point SSH_AUTH_SOCK at Bitwarden's socket (on Windows, disable the OpenSSH Authentication Agent service instead), then run ssh-add -L to see your vault keys. Bitwarden's help pages say it supports Ed25519 and RSA keys, imports OpenSSH and PKCS#8 formats, and cannot import PuTTYgen keys.

Pick it if you already keep your passwords in Bitwarden and want private keys out of ~/.ssh and behind an approval prompt. Know the two limits that bite: the agent offers every vault key in turn, so many keys can trigger "too many authentication failures" unless you pin one with IdentityFile, and you cannot manage keys with ssh-add or edit key material after creation.

At a glance

From Bitwarden's SSH Agent and About SSH help pages, read 3 December 2026. Plan availability is not stated on either page.
PlatformSSH_AUTH_SOCK or stepNotes
WindowsDisable the OpenSSH Authentication Agent serviceGit: set core.sshCommand to Microsoft OpenSSH ssh.exe
macOS (.dmg)/Users/<user>/.bitwarden-ssh-agent.sockPersist in ~/.zshrc or ~/.bashrc
macOS (App Store)/Users/<user>/Library/Containers/com.bitwarden.desktop/Data/.bitwarden-ssh-agent.sockLonger sandbox path
Linux/home/<user>/.bitwarden-ssh-agent.sockPersist in your shell file
Linux Snap/home/<user>/snap/bitwarden/current/.bitwarden-ssh-agent.sockSnap sandbox path
Linux Flatpak/home/<user>/.var/app/com.bitwarden.desktop/data/.bitwarden-ssh-agent.sockFlatpak sandbox path

Quick disclosure. Bitwarden has no affiliate program, so this page earns nothing whether you use it or not. The Bitwarden link below goes through our /go/ redirect only so we can count clicks. We did not benchmark the agent. Everything factual here is from Bitwarden's SSH Agent and About SSH help pages, read on 3 December 2026.

What the Bitwarden SSH agent is

An SSH agent holds your private keys and signs login requests for you, so the key never has to sit as a loose file in ~/.ssh. Normally that is the ssh-agent that ships with OpenSSH. Bitwarden's desktop app can take over that job, using keys stored as SSH key items in your vault.

What you get:

  • Private keys stored encrypted in your vault, synced to your other devices.
  • An approval prompt when a key is used, if you want one.
  • Git commit signing with the same keys.
  • Agent forwarding with a prompt per use.

What you do not get: the agent itself on the browser extension or phone. Bitwarden says SSH key items can be stored and viewed on desktop, web, browser extension and mobile, but the agent runs in the desktop app.

Need the desktop app? It is a free download, and you can get Bitwarden at vectaai.com/go/bitwarden. Bitwarden's help pages do not say which plans include SSH keys, so check your own vault before you plan around it. Bitwarden's search listing for the help page also notes a minimum desktop release of 2025.1.2.

Set it up in five steps

  1. Store a key. In the desktop app, web app or browser extension, create an SSH key item. Bitwarden can generate Ed25519 keys. To bring an existing key, copy the whole private key including the header and footer lines, and use Import key from clipboard in the desktop app.
  2. Turn on the agent. Desktop app, Settings, Enable SSH agent.
  3. Choose your prompt. Set Ask for authorization when using SSH agent. Stricter means more clicks, safer means more clicks. Your call.
  4. Point SSH at Bitwarden. Set SSH_AUTH_SOCK for your platform (table above). On Windows, open Services and set OpenSSH Authentication Agent to Disabled, so Bitwarden can take the pipe.
  5. Test. Run ssh-add -L. You should see your vault's public keys.

Mac users: notice there are two socket paths. The App Store build lives in a sandbox, so its socket sits under Library/Containers. The .dmg build uses ~/.bitwarden-ssh-agent.sock. Use the one that matches how you installed. Bitwarden's page also shows a launchctl setenv option for GUI apps.

Locked vault behaviour

This is where Bitwarden is thoughtful. From its help page:

Vault stateList keysSign (log in)
Logged outAgent not runningAgent not running
Locked, never unlocked this sessionWorksPrompts you to unlock
Locked, after first unlockWorksPrompts to unlock, then to authorize
UnlockedWorksWorks (plus prompt if you set one)

So a stolen laptop with a locked vault does not hand out signatures. Good.

Git: authentication and commit signing

Authenticating to GitHub: add the public key to your GitHub account, run ssh -T git@github.com, approve the Bitwarden prompt. Done.

Signing commits needs, per Bitwarden:

  • Git 2.34 or newer
  • OpenSSH 8.8 or newer
  • Desktop app with the agent enabled

Then:

git config --global gpg.format ssh
git config --global user.signingkey "ssh-ed25519 AAAA...your public key"
git config --global commit.gpgsign true

For local verification, point gpg.ssh.allowedSignersFile at a file listing your email and public key. On Windows, Bitwarden says to set core.sshCommand to Microsoft's OpenSSH ssh.exe, and possibly gpg.ssh.program to ssh-keygen.exe, because Git for Windows ships its own SSH that will not see Bitwarden's agent.

Heads up: every commit is a signature, so with "always ask" you will approve a lot of prompts on a busy day. Loosen the setting if it drives you mad.

The limits, straight

Bitwarden lists these itself on its About SSH page, which we appreciate:

  • Keys only from your vault. You cannot add, remove or constrain keys with ssh-add, and the agent ignores keys configured in ~/.ssh/config.
  • No key picking. The agent tries each key until one works. Got eight keys? Many servers give up after a handful of attempts. Fix: in ~/.ssh/config, set IdentityFile for that host to the public key file, so SSH asks for only that one. OpenSSH's IdentitiesOnly yes option, documented in the ssh_config manual, helps enforce it.
  • PuTTYgen keys cannot be imported. Convert them to OpenSSH format first with PuTTYgen's export.
  • Key material cannot be edited after creation. Only name, folder, owner and custom fields.
  • Multiple accounts: keys load per logged-in account, and the Enable SSH agent switch is global.
  • Silent fallback. If you also run a native agent with keys on disk, your SSH client may quietly use that one when Bitwarden's agent fails. Great for uptime, bad if you thought all keys went through Bitwarden.
  • Key types: Ed25519 and RSA (SHA-256 and SHA-512). ECDSA is not mentioned.

Bitwarden vs 1Password vs plain OpenSSH for SSH keys

Bitwarden agent1Password agentOpenSSH ssh-agent
CostBitwarden free plan exists; SSH plan rules not statedPaid plans only (1Password has no free plan)Free, built in
Keys storedEncrypted vault, syncedEncrypted vault, syncedFiles on disk
Approval promptYes, configurableYesNo, unless you add confirm
Generate keysEd25519 onlySee our 1Password pageAny type ssh-keygen supports
Key pickingNo, tries each keySee our 1Password pagessh_config controls it
Open sourceYesNoYes

If 1Password is already your manager, our 1Password SSH keys guide covers its agent and Git signing. Prefer everything offline? KeePassXC vs Bitwarden is the comparison you want; KeePassXC can feed keys to an agent too.

Troubleshooting in one minute

  • "Error connecting to agent: Connection refused": Bitwarden says the agent is usually not running. Check the setting is on and the app is open and logged in.
  • ssh-add -L shows nothing: wrong SSH_AUTH_SOCK path for your install type (App Store vs .dmg, Snap vs Flatpak), or a new terminal that did not load your shell file.
  • Windows does nothing: the OpenSSH Authentication Agent service is still running. Disable it.
  • Git asks for a passphrase: Git is using its bundled SSH. Set core.sshCommand.
  • Still stuck: run ssh -vvv and read which agent and keys it tries. Bitwarden's page asks for that output in support requests too.

Should you use it?

  • Use the Bitwarden agent if you already live in Bitwarden, have a handful of keys, and want them out of ~/.ssh with a prompt on use. Our Bitwarden review covers the plans and price.
  • Stick with OpenSSH if you run dozens of keys, need ECDSA or hardware-backed keys, or script key loading with ssh-add.
  • Look at 1Password if you want a polished paid agent and already pay for it.

How we checked

We read Bitwarden's SSH Agent and About SSH pages on 3 December 2026 and the OpenSSH ssh_config manual for the IdentityFile options. The 2025.1.2 minimum version appeared in Bitwarden's search listing for its help page, not in the text our reader got. Neither help page states which plans include SSH keys or whether passphrase-protected keys import, so we do not claim either. Bitwarden's pages win if they change. More on how we pick.

Questions people ask

Does Bitwarden have an SSH agent?

Yes. Bitwarden's help center says the Bitwarden Password Manager desktop app can act as an SSH agent. You switch it on under Settings, Enable SSH agent, point your SSH client at its socket, and your vault's SSH keys become available to ssh and git. The browser extension and mobile apps store SSH keys but do not run the agent.

Which SSH key types does Bitwarden support?

Bitwarden's About SSH page lists Ed25519 and RSA, with RSA signatures in SHA-256 and SHA-512. Bitwarden can only generate Ed25519 keys itself. Imported keys must be in OpenSSH or PKCS#8 format, and the page says PuTTYgen keys cannot be imported at this time. ECDSA is not mentioned on the page.

Can I sign Git commits with the Bitwarden SSH agent?

Yes. Bitwarden's guide needs Git 2.34 or newer, OpenSSH 8.8 or newer, and the desktop app with the agent on. Set gpg.format to ssh, user.signingkey to your public key and commit.gpgsign to true. Each signature can trigger a Bitwarden approval prompt, depending on your authorization setting.

Why do I get too many authentication failures with Bitwarden SSH?

Bitwarden says its agent cannot pick a key per request, so it offers each vault key until one works. Servers often cut you off after a few tries. The fix Bitwarden suggests is naming the key for that host with IdentityFile in your SSH config, pointing at the public key, so only the right one is offered.

Does the Bitwarden SSH agent work when the vault is locked?

Partly. Bitwarden's table says a locked vault still answers list requests, but sign requests prompt you to unlock first, and after the first unlock also to authorize. When you are logged out, the agent is not running at all. So your server login waits for you to unlock, which is the point.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Bitwarden help: SSH Agent, checked 3 Dec 2026
  2. Bitwarden help: About SSH (key types, import, limitations), checked 3 Dec 2026
  3. Bitwarden pricing, checked 2 Dec 2026
  4. OpenSSH manual: ssh_config (IdentityFile, IdentitiesOnly), checked 3 Dec 2026