microsoft / microsoft/vscode-remote-release
Remote SSH: Support RemoteForward in Fowarded Ports view
@alexr00 is already working on this.
Since Feb 11, 2020.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 470
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
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 5555 127.0.0.1:5555
How it looks now:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.