Ssh-agent in macos not working

Managed to get the SSH agent working fine in Windows with my account following the Bitwarden guide, all went smoothly.

Using the same guide but the MacOS version (I’m unable to link the page)
I cannot get the agent to work in MacOS… I have the app store version installed and I have completed export SSH-AUTH-SOCK etc, I can see the socket (.bitwarden-ssh-agent.sock) file that has been generated in the correct directory and I have “use SSH agent” in the app checked.

When I check communication and type “ssh-add -L” into my terminal I get “The agent has no identities”

I am not self hosting Bitwarden.

Any help greatly appreciated!

Slightly updated output after verifying that SSH_AUTH_SOCK env variable was pointing at the correct file:

❯ echo $SSH_AUTH_SOCK
/Users/************/Library/Containers/com.bitwarden.desktop/Data/.bitwarden-ssh-agent.sock
❯ ssh-add -L
error fetching identities: communication with agent failed

1 Like

Looks like there’s a fix that should be in the next release.

I’m seeing a similar issue.

I tried a couple different things to see how it behaved.

## With Bitwarden closed
❯ ssh-add -L
Error connecting to agent: Connection refused

## Open Bitwarden, but didn't unlock the vault
❯ ssh-add -L
error fetching identities: communication with agent failed

## Unlocked vault
❯ ssh-add -L

# terminal hangs like it's waiting for something
1 Like

For me “ssh-add -L” just hangs.

Mac App Store: Version 2025.2.1 (38769)