SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
546 stars 36 forks source link

Add Support for PuTTY "Local" Proxy Configuration #199

Closed securityguy-nc closed 4 years ago

securityguy-nc commented 4 years ago

image

The above configuration allows PuTTY to transparently connect through a jump box.

However if I try to use this PuTTY configuration, I get an error: Error while connecting to SSH FS devserver: The requested PuTTY session uses an unsupported proxy method

SchoofsKelvin commented 4 years ago

The extension can only read/support the None, SOCKS 4/5 and HTTP proxy types.

In your case, it seems like you're basically just doing a SSH hop? The extension does support SSH hopping, which can be configured using the Settings UI or editing settings.json:

{
    "name": "...",
    "hop": "jumpbox"
    // ...
},
{
    "name": "jumpbox",
    "host": "jump-box.org.com",
    // ...
}

This basically makes the extension create a SSH session to jumpbox, then use it to create a SSH tunnel to the actual host. Looking at your screenshot, this should be what you want.

More info is also available in previous issues: #38 #66 (actually having proper Settings UI support for this is on my TO DO list)