Skip to content

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

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy