Skip to content

[Bug]: SSH helpers hard-code a Unix-only ssh path #83289

Description

@giodl73-repo

Summary

A local code audit found that SSH helpers assume /usr/bin/ssh, which breaks on hosts where a trusted SSH client exists in a platform-specific location, such as Windows OpenSSH.

Affected area

  • src/infra/ssh-config.ts
  • src/infra/ssh-tunnel.ts

Repro

On a Windows host with the built-in OpenSSH client installed in the Windows OpenSSH location, call the SSH config/tunnel helpers. They try /usr/bin/ssh instead of resolving the platform SSH executable.

Expected

SSH helpers should resolve a trusted SSH binary using the repository's system-binary resolution conventions and return a clear diagnostic when none is available.

Source: local code audit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions