Skip to content

Feat: Add flag and env variable for identity agent in coder ssh #1887

Closed
@mafredri

Description

@mafredri

What is your suggestion?

We should add a flag and env variable for the equivalent of IdentityAgent in SSH configs. These would be coder ssh --identity-agent /path/to/auth.sock and CODER_SSH_IDENTITY_AGENT=/path/to/auth.sock. There is no shorthand flag for this in SSH, so I don't think we need one here.

Why do you want this feature?

This is a useful feature for users or organizations using multiple SSH identity agents and avoids situations where the user needs to work around the limitation by changing the SSH_AUTH_SOCK env variable.

Are there any workarounds to get this functionality today?

There are two:

  • Use SSH and change config, e.g. coder config-ssh -o 'ForwardAgent=yes' -o 'IdentityAgent "~/my/agent.sock"'
  • Modify the SSH_AUTH_SOCK env variable

Are you interested in submitting a PR for this?

Yes.

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions