SchoofsKelvin / vscode-sshfs

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

Tunelling arbitrary ip:port via the SSH Connection #371

Closed erickweil closed 1 year ago

erickweil commented 1 year ago

If I open a terminal I can tunnel ports via ssh with the -L option (see https://linuxize.com/post/how-to-setup-ssh-tunneling/)

For example, if I want to connect to example.server.com that from his internal networks sees a mysql database on ip 10.0.0.5, and I want to expose this service to my machine via the ssh connection I run: ssh -L 3306:10.0.0.5:3306 user@example.server.com

And both the port is forwarded on my machine and the ssh connection opens to be used.

The Remote Explorer extension implements this by having a tab where you can put those ports mappings. But I don't want to consume 1Gb+ of RAM neither to have 200Mb+ of vscode trash just to easily forward a port.

There is any plans to implement port tunneling like this?

Note: I'm not talking about proxy the ssh connection itself, it's about reaching ports visible only inside the network of the server i'm connecting to.

SchoofsKelvin commented 1 year ago

Already in progress (#107 and e.g. #254). It's currently a beta feature on the feature/forwarding branch and not yet available in production.

SchoofsKelvin commented 1 year ago

Some more information: