BitWarden 2026 as SSH agent for Visual Studio

I’m writing this in March 2026. The procedure already changed a couple of times because of BitWarden upgrades.

Goal

My objective is to be able to use the SSH keys stored in BitWarden in Visual Studio, and more in particular in combination with the SSH FS – Visual Studio Marketplace extension.

This SSH FS extension allows users to connect to a remote server using the SSH protocol, and to mount folders and write to remote files.

Prerequisite

Current Microsoft Windows versions come with their own OpenSSH service.

We want to use the standard OpenSSH pipe, and make Bitwarden prompt to authorize the SSH keys stored in BitWarden.

To accomplish this, we must disable the OpenSSH service. Otherwise, BitWarden can not take over.

Stop-Service ssh-agent -Force
Set-Service -Name ssh-agent -StartupType Disabled

Now, confirm that no pipes are shown anymore. The following command should not list anything related to openssh-ssh-agent anymore.

[System.IO.Directory]::GetFiles("\\.\pipe\") | Where-Object { $_ -like "*ssh*" }

Enabling the BitWarden SSH agent

  1. Start BitWarden. If it was already running, restart it. It may be necessary to do this explicitly as an administrator.
  2. Go to Settings > SSH Agent.
  3. Ensure Enable SSH agent is checked.

Check if this shows the pipe:

[System.IO.Directory]::GetFiles("\\.\pipe\") | Where-Object { $_ -like "*ssh*" }

The output should be this:

\\.\pipe\openssh-ssh-agent

If you try the following command, it should now list the SSH keys that you have available in BitWarden.

ssh-add -l

Configuring SSH FS in VS Code

(Re)start Visual Studio. When you go to SSH FS and edit a configuration for a remote server, focus on this:

  • Don’t set a private key; don’t point to a private key file.
  • Look for the Agent setting and make sure it points to \\.\pipe\openssh-ssh-agent

This should be enough.

As soon as you want to connect to this remote server within VS Code, you should see BitWarden requesting your authorization.

Scroll to Top