Password ManagerDeveloper ToolsSSH

SSH Agent

Bitwarden Password Manager desktop app can act as an SSH Agent to securely encrypt and store your SSH (Secure Shell) keys for use with:

  • Authenticating to servers

  • Signing Git commits

  • Interacting with SSH-based services

See About SSH for additional information on how the agent works, supported key types, known limitations, and vault behavior.

Enable SSH Agent

To enable the SSH Agent on your Bitwarden desktop app, navigate to Settings and Enable SSH agent. Then, adjust the Ask for authorization when using SSH agent setting. This setting will determine when Bitwarden will require you to authorize access to an SSH key:

Enable SSH storage on desktop client
Enable SSH storage on desktop client

Behavior by vault state

The SSH agent behaves differently depending on the current state of your vault. The following describes single-account behavior with the agent enabled.

Configure your system to use Bitwarden SSH agent

In order to use Bitwarden as your primary SSH Agent, you will be required to configure your SSH client to communicate with Bitwarden for authentication. Once you have enabled the agent in the desktop app, configure your operating system to route SSH requests to Bitwarden:

To enable the Bitwarden SSH Agent on Windows, you must disable the OpenSSH service on your Windows machine:

  1. Navigate to Services → OpenSSH Authentication Agent.

    Windows Services panel
    Windows Services panel

  2. Once you have opened the OpenSSH Authentication Agent Properties window, set the Startup type setting to Disabled.

    Windows Services panel
    Windows Services panel

  3. Once the settings have been adjusted, select Apply and then OK.

Test SSH agent

Once the SSH Agent has been configured for Bitwarden, you may test the setup by requesting an SSH list:

Plain Text
ssh-add -L

Scenarios and workflows

Once the agent has been enabled and your OS has been configured, you can use Bitwarden SSH keys in a range of tools and workflows. The following scenarios will provide step-by-step setup for a range of common setups and use cases.

Troubleshooting

The following section includes common issues users may encounter when using the SSH agent.

Error connecting to agent: Connection refused

  • The agent is not running; confirm it has been properly enabled and check the app logs.

ssh <action> fails

  • Try to run the command with -vvv and capture the output to share in a bug report.