- Notifications
You must be signed in to change notification settings - Fork928
Closed
Description
What is your suggestion?
We should add a flag and env variable for the equivalent ofIdentityAgent
in SSH configs. These would becoder ssh --identity-agent /path/to/auth.sock
andCODER_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 theSSH_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.