Vscode-remote-release: Remote SSH: Support RemoteForward in Fowarded Ports view

Created on 8 Feb 2020  路  11Comments  路  Source: microsoft/vscode-remote-release

Description

VSCode currently only displays Remote SSH port forwards in one direction (LocalForward or ssh -L). Please consider adding support for RemoteForward or ssh -R.

Use case

I've recently started using this in order to develop with the Flutter framework remotely over SSH with the Android emulator running on my local machine and the Flutter SDK and VS Code extension running on the remote.

This is possible by running adb tcpip 5555 on your local machine (with an Android emulator running or phone plugged in via USB). You can then forward the ADB port (ssh -R 5555 127.0.0.1:5555) to the remote, run adb connect 127.0.0.1:5555 and VS Code picks up the device perfectly.

See example ~/.ssh/config below:

Host myhost
    HostName        x.x.x.x
    LocalForward    8000 127.0.0.1:8000
    LocalForward    1433 127.0.0.1:1433
    RemoteForward   5037 127.0.0.1:5037

How it looks now:

image

feature-request remote-explorer

All 11 comments


This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Hello, this is something that I would love to have inside VSCode for remote development.
How can we upvote it ? Is it only with a 馃憤馃徏 on the issue ? Or is there some more formal process ?

Do you mean --expose option in addition to -p ?
[docker run --expose] (https://docs.docker.com/engine/reference/commandline/run/#publish-or-expose-port--p---expose)

@PavelSosin-320
I think this issue is more about Remote - SSH extension, where what you're talking about is docker containers. Which would maybe be useful for the Remote - Containers extension but not SSH.

I have updated the title to better reflect that this is request is specifically for Remote SSH, not Containers or WSL.

Landed here because I also need it for mobile development, but handling "ssh -R" sounds like a good idea anyway, not too far from how "ssh -L" is done anyway (maybe?).

@Shosta This issue has nothing to do with Docker or ADB. I simply used ADB/Flutter as an example of a use case for the requested feature. While I appreciate the steps you've outlined in your comment might be useful for some, I'm not sure that this is the right place for it as it could confuse users who are coming here trying to get Remote SSH working.

Yes sure.
If it is only related as an exemple.

Sorry for that.


This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding

This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding

What about now? 馃殌


:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Was this page helpful?
0 / 5 - 0 ratings