Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
thibaulltt
1 year agoNew Contributor
Specify the path to the SSH agent socket ?
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 https://developer.1password.com/docs/ssh/agent/config).
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:
```toml
[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
2 Replies
- mdylanbellNew Member
Just want to +1 this. I think apps hard-coding paths into user home folder is an antipattern; please allow for customization through env vars and/or the toml file.
I have had a 1password account for around a decade but just started looking into using 1password for secret and ssh config and this was the first thing I looked for and was disappointed to find path customization was hard coded in this way and not customizable. - Michael_MercuriDedicated Contributor
+1 to make this configurable.
On macOS, I symlink
~/.1Password/agent.sockto the 1Password SSH agent socket to so that this is consistent between macOS and Linux:shell
ln -s ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ~/.1password/agent.sock