Skip to content

CLI Feature Requests: SSH Agent Installation and Configurations #98

Closed
@rwbot

Description

@rwbot

Not an issue, but didn't know where else to ask. Was looking to see how people are managing their agent config files.

Currently I stored my agent.toml files as a document and install one in a new env via

op document get "hostname-agent.toml" --out-file=~/.config/1Password/ssh/agent.toml

but as I started using different configurations for different envs, and needing to rotate SSH keys for existing envs, it becomes a pains to edit the config via the app because it would open in whatever the default text editor is instead of the in-app editor for items, and I'd have to go back and for between the app and text editor to copy paste the key names, then save the new .toml and replace the current .toml with the new.

  1. Is there a better way? If so, please do share
  2. If not, could we add a built in Item Template Category for an SSH Agent Configuration so it can be easily modified via the app and then referenced as an item to get via the CLI?
  3. Could we also add a tool in the CLI to automatically configure the SSH client to use the 1P SSH Agent? The Desktop app makes it super easy with one button to automatically add the IdentityAgent snippet to your ~/.ssh/config file, so it'd be nice to have that in the CLI as well for server installs, like maybe an op agent install in the management commands that appends the IdentityAgent snippet to ~/.ssh/config or appends SSH_AUTH_SOCK=~/.1password/agent.sock to the shell profile?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions