Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Proxy does not work #589

Open
1 task done
brianclinkenbeard opened this issue Jun 18, 2019 · 2 comments
Open
1 task done

HTTP Proxy does not work #589

brianclinkenbeard opened this issue Jun 18, 2019 · 2 comments

Comments

@brianclinkenbeard
Copy link

brianclinkenbeard commented Jun 18, 2019

Do you read the FAQ?

  • Yes.

Describe the bug
With http.proxy set and http.proxySupport to override, trying to connect to a server through the proxy doesn't work (using something like ssh -o ProxyCommand="connect-proxy -H ..." works).

To Reproduce
Steps to reproduce the behavior:

  1. Set http.proxy
  2. Try to connect to proxy-only server
  3. See error

Desktop

  • OS: Win
  • VSCode Version 1.35.1
  • Extension Version 1.12.7

Extension Logs from Startup

[06-18 15:23:13] [debug] Local ident: 'SSH-2.0-ssh2js0.4.2'
[06-18 15:23:13] [debug] Client: Trying 192.168.xx.xx on port 22 ...
[06-18 15:23:23] [debug] Outgoing: Writing DISCONNECT (BY_APPLICATION)
[06-18 15:23:23] [error] Error: [192.168.xx.xx]: Timed out while waiting for handshake

In #440, microsoft/vscode#60773 was mentioned, but that bug has been closed and the issue still persists.

@brianclinkenbeard
Copy link
Author

Doesn't work when using vscode with proxy command line flag (i.e. --proxy-server="socks5://...) either.

@jubebo
Copy link

jubebo commented Jul 20, 2022

I encounter the same problem - and indeed everybody working with a the Google Cloud will, too: It is recommended to connect to virtual machines on the Google Cloud via a bastion server [LINK]. The connection needs to be created running the "gcloud" command line utility and this currently cannot be configured in vscode-sftp. Especially, the implemented "connection hopping" functionality cannot handle this setup.

On the command line this can easily be achieved by setting a proxy command in .ssh/config and Microsofts own ssh-connection plugin [LINK] can easily handle this setup.

@development team: Could you please verify, if the same functionality can be implemented in vscode-sftp as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants