Skip to content

Respect config generated by config-ssh #425

Description

@code-asher

I am not sure how feasible this is, but it seems more doable now that config-ssh uses wildcards. We generate a separate config because we want to add flags and options. Maybe we could read the SSH config and add anything we are missing? Would need to respect CODER_SSH_CONFIG_FILE as well.

Or, can we do something with includes? Or if we use a prefix like coder.vscode.* then it will just naturally inherit options.

Activity

  1. added
    help wanted
    on Jan 22, 2025
  2. removed
    help wanted
    on Jan 22, 2025
  3. added theissue type on Feb 5, 2025
  4. matifali commented on Apr 3, 2025

    @matifali
    Contributor

    We now use wildcard configs as per version 1.4.0. This should be fixed. If not, please comment/reopen.

  5. code-asher commented on Apr 3, 2025

    @code-asher
    MemberAuthor

    The problem was that users would do things like coder config-ssh -o ForwardX11=yes and ForwardX11=yes will apply to coder ssh or ssh coder.* but it will not apply to the extension, wildcards or no.

    It can be worked around by manually adding ForwardX11=yes to the SSH config file or the extension settings, but it could be nice to support it automatically. Not sure how many people care about this though.

  6. EhabY commented on Nov 25, 2026

    @EhabY
    Collaborator

    This is implemented. When connecting, the extension reads the # :ssh-option= lines that coder config-ssh writes to the START-CODER block (in the Remote-SSH config file or ~/.ssh/config) and merges them with priority coder.sshConfig > config-ssh options > deployment options.

    Remaining gaps are tracked in #695: accumulating options beyond SetEnv/SendEnv, and respecting CODER_SSH_CONFIG_FILE / --ssh-config-file.

  7. self-assigned this
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions