liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 262 forks source link

HTTP Proxy does not work #589

Open brianclinkenbeard opened 5 years ago

brianclinkenbeard commented 5 years ago

Do you read the FAQ?

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

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 commented 5 years ago

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

jubebo commented 2 years ago

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?