Skip to content

ProxyCommand for the SSH tunnel does not receive http.proxy #1010

Closed

Description

@nithril

Problem

When conne ting to a workspace through the VS Code extension from behind a corporate HTTP proxy, the connection hangs at "Setting up SSH Host…" and eventually times out. The root cause is that the ProxyCommand generated by the extension runs coder ssh --stdio without any proxy configuration: no proxy flag is passed, and no proxy environment variable is injected into the subprocess. The coder CLI therefore reaches the deployment only if HTTP_PROXY/HTTPS_PROXY happen to already be present in the environment VS Code inherited.

The extension does honor http.proxy for its own API client but that setting is never propagated to the SSH tunnel subprocess, so it has no effect on the actual connection.

Expected behavior

The extension uses the configured proxy (http.proxy, falling back to HTTP_PROXY/HTTPS_PROXY, and honoring coder.proxyBypass/http.noProxy) for the SSH tunnel, so the connection succeeds.

Environment

  • OS: Windows
  • VS Code with the Remote - SSH extension (ms-vscode-remote.remote-ssh)
  • Coder extension version: 1.15.0
  • Network: behind a corporate HTTP proxy; the Coder deployment is reachable only via that proxy
  • http.proxy configured in settings.json

Activity

  1. linear-code commented on Jun 15, 2026

    @linear-code
  2. self-assigned this
    on Jun 17, 2026
  3. EhabY commented on Jun 18, 2026

    @EhabY
    Collaborator

    Hey Nicolas, thanks for the bug report!

    Would you be able to test the VSIX below? It adds support for passing through the proxy env variable.

    One thing to check first: make sure remote.SSH.useLocalServer is set to true, otherwise it won't work. If it's currently set to false, you'll get a dialog with an option to switch it on, so no worries either way.

    https://github.com/coder/vscode-coder/actions/runs/27761689563/artifacts/7724243795

    Let me know how it goes

  4. nithril commented on Jun 24, 2026

    @nithril
    Author

    Hello @EhabY,

    Thank you for your fix, I will gonna test in the upcoming days.

  5. added a commit that references this issue on Jun 25, 2026
    c62d3c1
  6. EhabY commented on Jun 26, 2026

    @EhabY
    Collaborator

    @nithril We just released v1.15.1 which includes a fix for this. Please let me know if you get a chance to test it!

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions