Specify the path to the SSH agent socket ?

thibaulltt
thibaulltt
Community Member

Currently, the 1Password ssh agent socket is set to ~/.1Password/agent.sock on Linux, and ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock on macOS (as per this article).

Would it be possible to modify that path ? It could then be set to respect the $XDG_DATA_HOME variable on Linux, or could be set to a custom path.

I propose using the agent.toml configuration file, and store that path under the following table:

[ssh-agent]
socket = "$XDG_DATA_HOME/1Password/agent.sock"

# The tables below would behave as usual...
[[ssh-keys]]
item = "..."
# ...

1Password Version: 8.10.54
Extension Version: 8.10.55.2
OS Version: Fedora 41
Browser: Not Provided

Comments

  • Michael Mercurio
    Michael Mercurio
    Community Member

    +1 to make this configurable.

    On macOS, I symlink ~/.1Password/agent.sock to the 1Password SSH agent socket to so that this is consistent between macOS and Linux:

    ln -s ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ~/.1password/agent.sock