Ask questions[SSH] Add config option for host and port on which vscode-server is started on the remote

Dear VSCode Remote Extensions team,

first of all let me thank you for the great work you are doing!

The problem

On the remote host I am using for development port forwarding is allowed, however only for specific pairs of host and port. Currently there seems to be no way to tell Remote - SSH extension which address I would like vscode-server to run on.

For example, I can only forward localhost:3000, but is not allowed.

To verify that my understanding is correct I've created simple node http server and then tried making ssh tunnels on allowed host/port and not allowed host/port. I can confirm that this is indeed the issue.

Proposed feature

Allow to specify host and port on which vscode-server will be started on in the extension settings.

// settings.json
  "remote.SSH.remote-address": {
    "host1": "",
    "host2": "localhost:3000"

For future readers

To make it easier for VSCode team to react to this issue I am kindly asking you to avoid writing +1 comments. Please just add your reaction 👍 to the original post. Thank you!


Answer questions gyzerok

Hello @roblourens!

My apologies if pinging you is a very bad idea.

I have created this issue couple of months ago and have been patiently waiting for it to get labeled ever since.

Nothing have happened and I am wondering if it got accidentally missed due to the volumes of new issues coming in.

My subjective feeling is that it should be really easy to fix, so I am kind of having high hopes that I’ll be able to use VSCode over ssh eventually 😅

Thank you for working on remote extensions!


Related questions

Failed to parse remote port from server output after the install command
Unsupported architecture: armv6l hot 3
Remote-SSH: Fails to discover WSL SSH hot 2
Failed to establish connection to Raspberry Pi -- "The remote host's architecture is not supported" hot 2
Hangs/Stalls on "Setting up SSH Host [server] Initializing VS Code Server hot 2
The terminal shell path "cmd.exe" does not exist - vscode-remote-release hot 2
High CPU usage with Remote WSL while coding in PHP hot 2
Failed to connect to the remote extension host server (Error: Connection error: Unauthorized client refused.) hot 2
Permission issues on WSL with VSCode Remote hot 2
Failed to parse remote port from server output hot 2
The process tried to write to a nonexistent pipe. hot 2
SSH extention Cannot reconnect. Please reload window. hot 2
Install terminal quit with output hot 2
Can't connect reliable when using ssh + password hot 2
Can't run an Alpine container with non root user hot 2
Github User Rank List