Skip to content

Support reverse tunnel #100222

@shawee

Description

@shawee

context

I am trying to access adb in local machine from my remote server. To do that, I tried something like
ssh -R ${remote_port}:localhost:${local_port} remote_address which opened a reverse port forwarding from my server and local machine so that I was able to access local attached devices in my remote server terminal.
However, rather than using remote ssh tunnel everytime, I want to automate everything in vscode extension

Problem

It looks reverse port is a known issue. Wondering when that will be resolved? (https://code.visualstudio.com/api/advanced-topics/remote-extensions#known-issues)

I tried to use vscode.workspace.openTunnel
(https://raw.githubusercontent.com/microsoft/vscode/master/src/vs/vscode.proposed.d.ts)
api but it only supports a forward tunnel. Can we support reverse tunnel in this api?

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityremote-explorerRemote explorer view

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions