microsoft / microsoft/vscode-remote-release

Remote SSH: Support RemoteForward in Fowarded Ports view

Open
#2,318 17 comments 50 reactions 1 assignee View on GitHub

@alexr00 is already working on this.

Since Feb 11, 2020.

feature-request remote-explorer
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:

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.