Skip to content

Enable setting HTTP proxies for VSC server with Remote - SSH #5727

Closed

Description

Overview

It seems like remote VS Code instances with Remote - SSH extensions are using the proxy configuration of the client environment. That doesn't always work as developer workstation may use a different set of proxies (or no proxies) unlike the target server being remoted to. Possibly related issue #957.

Environment

  • Version of VS Code: 1.61.0
  • What type of remote connection you were using: SSH
  • Your operating system: Windows
  • The remote operating system you are connecting to: Linux
  • List of extensions that you have installed: attempting to install C/C++ extension

Steps to reproduce

  • Have a local environment that doesn't require proxies or uses a different set of proxies from the target server
  • Connect to the target server via Remote - SSH
  • Attempt to install C/C++ extension extension
  • After a while, the extension will be installed and will try to install its dependencies
  • Dependencies will eventually fail to install:
Downloading package 'C/C++ language components (Linux / x86_64)'  Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed to download https://go.microsoft.com/fwlink/?linkid=2175018
Failed at stage: downloadPackages
Error: Failed to establish a socket connection to proxies: ["PROXY someredactedproxyhost"]
  • Observe the failure due to VSCode server attempting to use client proxies (someredactedproxyhost is what my laptop is using and isn't applicable to the target server)

While the reproduction case use C/C++ extension, this also applies to any other extension that downloads additional dependencies.

Activity

  1. added
    ssh
    on Oct 15, 2021
  2. added
    proxy
    on Oct 19, 2021
  3. chrmarti commented on Oct 19, 2021

    @chrmarti
    Contributor

    Duplicate of #986, continuing there.

  4. added
    *duplicate
    on Oct 19, 2021
  5. EricHripko commented on Oct 19, 2021

    @EricHripko
    Author

    Sorry, didn't realise it was a duplicate! Thank you for quick triaging 👍

  6. locked and limited conversation to collaborators on Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateproxyssh

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions