Vscode-remote-release: localPort config parameter not works

Created on 5 Nov 2019  路  9Comments  路  Source: microsoft/vscode-remote-release


  • VSCode Version: 1.39.2
  • Local OS Version: MacOS Catalina 10.15
  • Remote OS Version: Ubuntu 18.04 lts
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. Set the "remote.SSH.defaultForwardedPorts" option
  2. Restart VSCode

If I set the "remote.SSH.defaultForwardedPorts" option and configure some ports, nameand remotePortoption works well, but localPort seems that not work.

This is my config:

"remote.SSH.defaultForwardedPorts": [
    {
        "localPort": 8080,
        "name": "example",
        "remotePort": 8080
    }
],

Captura de pantalla 2019-11-05 a las 9 20 20

bug ssh verified

Most helpful comment

It's shipped in the nightly extension.

All 9 comments

That port is probably in use, please check.

No, the port is not in use.

I also try after a reboot.
Captura de pantalla 2019-11-13 a las 13 24 22

If I create a tunnel manually with SSH, this works correctly.

I'm having the same problem. If I configure a port in settings.json, it's set to a random local port. But if I use the "Create New Forward" option, it works correctly.

Yes, with "Create New Forward" command also works for me.

Yes , I'm having the same problem.

Same issue
I think new port is being assigned before old one manages to disconnect, as vscode reboots almost instantly

Have this problem got resolved? I encountered this issue onthe newest version.

I don't know @XueshiQiao. In theory it was added for the next milestone.
The endgame of this iteration is planned for the next friday. We will see if is solved.

It's shipped in the nightly extension.

Was this page helpful?
0 / 5 - 0 ratings