Skip to content

MacOS ssh-agent stop working after some period of inactivity #19653

@tikhdm

Description

@tikhdm

Steps To Reproduce

MacOS, ssh-agent configured with SSH_AUTH_SOCK=~/.bitwarden-ssh-agent.sock
It works, ssh-add -l shows all my keys
Then after some inactivity time - usually a few hours, much longer than vault lock timeout ssh-add -l and any other ssh related command start hanging.
The ~/.bitwarden-ssh-agent.sock is still present, but any access to it hangs.
I have to restart Bitwarden in order to make it working again.

This seems to be the same issue as #18061 but I cannot reopen the original one

Expected Result

ssh-agent always works

Actual Result

ssh-agent stop working and all ssh related commands hangs

Screenshots or Videos

No response

Additional Context

No response

Operating System

macOS

Operating System Version

26.3.1

Installation method

Homebrew

Build Version

2026.2.1 (57189)

Issue Tracking Info

  • I understand that work is tracked outside of GitHub. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions