Skip to content

FR: Support SSH authentication through GIT_SSH_COMMAND #4937

@ccll

Description

@ccll

Is your feature request related to a problem? Please describe.

We use Coder as remote containerized development environment for the team.

Coder will inject a custom GIT_SSH_COMMAND env var to each user's own workspace container, so the user can authenticate to our private Git server through SSH, as long as the user have added their public key in the Coder Web UI.

The env var looks like this:

GIT_SSH_COMMAND=/tmp/coder.lxnhG0/coder gitssh --

Recently some teammate proposed jj as an advanced alternative to plain git, and we liked it! We wanted to use it in our workflow.

The problem is that jj seems not respecting GIT_SSH_COMMAND so we can't push/pull from our Git server from within the Coder container.

Describe the solution you'd like

Let jj respect GIT_SSH_COMMAND.

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions