Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gyzerok opened this issue May 11, 2020 · 2 comments

Comments

@gyzerok
Copy link

gyzerok commented May 11, 2020

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 127.0.0.1:3000 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": "127.0.0.1:8000",
    "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!

@gyzerok gyzerok changed the title [Remote - SSH] Allow to specify port on which vscode-server will be started on the remote host [Remote - SSH] Allow to specify host:port on which vscode-server will be started on the remote host May 12, 2020
@gyzerok gyzerok changed the title [Remote - SSH] Allow to specify host:port on which vscode-server will be started on the remote host [Remote - SSH] Allow to specify host and port on which vscode-server will be started on the remote host May 13, 2020
@gyzerok gyzerok changed the title [Remote - SSH] Allow to specify host and port on which vscode-server will be started on the remote host [SSH] Allow to specify host and port on which vscode-server will be started on the remote host May 13, 2020
@gyzerok gyzerok changed the title [SSH] Allow to specify host and port on which vscode-server will be started on the remote host [SSH] Add config option for host and port on which vscode-server is started on the remote Jun 1, 2020
@gyzerok
Copy link
Author

gyzerok commented Jun 30, 2020

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!

@gyzerok
Copy link
Author

gyzerok commented Jul 10, 2020

Closing because it seems to be a duplicate, which I didn't notice when first creating.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant