Skip to content

bug: SSH options not properly forwarded with coder gitssh #19276

@NN708

Description

@NN708

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using coder gitssh with standard SSH options, the command fails to forward these options to ssh. Instead, coder incorrectly attempts to parse them as its own flags.

Originally reported in #7816.

Relevant Log Output

parsing flags ([gitssh -p 2222 git@server]) for "coder gitssh": unknown shorthand flag: 'p' in -p

Expected Behavior

All SSH options should be forwarded to ssh, since coder gitssh is intended to function as a wrapper around ssh.

Steps to Reproduce

Execute coder gitssh -p 2222 git@server in a Coder workspace.

Environment

  • Host OS: Debian 13
  • Coder version: 2.24.3

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue that require triage

    Type

    Projects

    No projects

    Milestone

    No 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