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

Don't rely on ssh TCP port forwarding #92

Closed
davidwin opened this issue May 3, 2019 · 17 comments
Closed

Don't rely on ssh TCP port forwarding #92

davidwin opened this issue May 3, 2019 · 17 comments
Labels
feature-request Request for new features or functionality ssh Issue in vscode-remote SSH

Comments

@davidwin
Copy link

davidwin commented May 3, 2019

The initial release of the VS Code Remote extension relies on SSH port forwarding between the client and server to make the HTTP endpoint for the extension host on the server appear as a local TCP port on the client. While this is a simple solution, it completely blocks use of the extension in environments where port forwarding has been disabled for security reason by setting AllowTCPForwarding to No.

For instance, I'm not able to use this feature in an enterprise setting with "dev servers" that otherwise pretty much fits one of the intended use cases. Issue #84 is probably also blocked for the same reason.

I suggest implementing a custom forwarding/multiplexing solution on top of a plain ssh connection to the remote server instance. Perhaps TCP sockets could be avoided completely that way.

Anyway, great work so far and I'm looking forward to testing this for real one day!

@davidwin
Copy link
Author

davidwin commented May 3, 2019

For reference, the Port Forwarding section on ssh.com notes that:

Enterprises would generally want to prevent port forwarding on their servers, unless expressly needed for tunneling legacy applications. There is substantial risk that users will use SSH tunneling to open backdoors into the organization through the firewall to get access to work machines from home. We've seen this done in numerous organizations and the technique is widely known.

One could argue whether there is an actual risk or not, but I wouldn't be surprised if many enterprises followed this advice.

@roblourens roblourens added doc feature-request Request for new features or functionality ssh Issue in vscode-remote SSH labels May 4, 2019
@christian-ehrisman
Copy link

to get access to work machines from home

This right here is the key, Unless you have a company culture that does not allow it, bending the rules in order to do more work is never punished and more of then than not rewarded.

@Dani21
Copy link

Dani21 commented Jul 11, 2019

to get access to work machines from home

This right here is the key, Unless you have a company culture that does not allow it, bending the rules in order to do more work is never punished and more of then than not rewarded.

It doesn't even necessarily have to do with your own company's culture either. If you're working with a vendor and they don't allow port forwarding, then all of a sudden this plugin doesn't work at all. I would've loved to use this extension but I'm uninstalling it now at least until this feature is taken care of. I've subscribed to getting a notification once this issue is closed, but for now, bye.

@tbennett6421
Copy link

subscribed. We do not have the ability to enable AllowTcpForwarding on dev boxes

@Chuxel Chuxel removed the doc label Aug 13, 2019
@Vultour
Copy link

Vultour commented Aug 16, 2019

We’ve got hundreds of developers eager to use the remote ssh extension, unfortunately this is blocking the rollout.

@alfonsomhc
Copy link

Same here, we can't enable AllowTcpForwarding ...

@ekouters
Copy link

Same here, AllowTCPForwarding is not an option for us.

@ghost
Copy link

ghost commented Oct 15, 2019

Would love for this to get fixed, AllowTCPForwarding cannot be enabled for us.

@Kai3620
Copy link

Kai3620 commented Oct 25, 2019

Seriously, +1 on this. Am a college CS student. Our campus server dev environment does not have AllowTCPForwarding enabled, with no plans to change that. A different solution is a must.

@wwarriner
Copy link

I am working in a cluster environment. We need to do computation (like with a Jupyter notebook) on compute nodes. The server therefore needs to be set up on a compute node. But the compute nodes have ports restricted except SSH and a few other application-specific ports. So +1 on this!

@soloji
Copy link

soloji commented Dec 5, 2019

AllowTCPForwarding is not an option for us.

@briantist
Copy link

Same, can't use this feature at all because it relies on this setting.

@RokuKent
Copy link

RokuKent commented Feb 4, 2020

My 1and1 ISP account has AllowTcpForwarding disabled, I would not be surprised if that's the default for most ISPs due to security restrictions.

@alexanderwiller
Copy link

Same here, can't use this extremely useful feature because I'm working in an environment that has AllowTcpForwarding no set.

Seriously, being able to use this extension without TCP forwarding would help spreading the word about the abilities of vscode so much, because in an enterprise you often have no choice but to live with the settings as a given. I would love to use vscode remote instead of local-vim, which is just not comparable at all.

@tomaszkaliciak
Copy link

Same, this could be a game changer.

@gyzerok
Copy link

gyzerok commented Jun 8, 2020

@roblourens I've noticed in another thread you are saying there are no plans to implement this right now.

Can you, please, lock this issue so there are no more same here comments?

I would like to stay subscribed to the issue in case your plans will change in the future.

@microsoft microsoft locked and limited conversation to collaborators Jun 8, 2020
@roblourens
Copy link
Member

The Remote-Tunnels/code server route will be the way forward for this scenario. It's not really practical for us to implement without forwarding https://marketplace.visualstudio.com/items?itemName=ms-vscode.remote-server

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests