Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #1939
mafredri opened this issue May 30, 2022 · 0 comments · Fixed by #1954
Closed
Tracked by #1939

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

mafredri opened this issue May 30, 2022 · 0 comments · Fixed by #1954
Assignees
Labels
api Area: HTTP API
Milestone

Comments

@mafredri
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants