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

no ssh sessions listed if Tunnels IP is blocked #10702

Open
jamesharris-garmin opened this issue Feb 13, 2025 · 5 comments
Open

no ssh sessions listed if Tunnels IP is blocked #10702

jamesharris-garmin opened this issue Feb 13, 2025 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH tunnels

Comments

@jamesharris-garmin
Copy link

jamesharris-garmin commented Feb 13, 2025

Type: Bug

  1. Use firewall to block or prevent access to global.rel.tunnels.api.visualstudio.com or otherwise have it return 403.

  2. Ensure remote-explorer is installed and pre-existing connections exist.

  3. Display ssh/tunnels remotes in the remote explorer.

Expected result:

Recent ssh sessions/workspaces should be displayed.

Acutal result:

No data is displayed and an error popup shows in the vscode notifications about the api call returning a bad status code.

No recent ssh connections are showed.

Suggested solutions:

Move tunnles view out of the ssh view so that failure to use tunnels doesn't block ssh recent workspaces usage.

Extension version: 0.4.3
VS Code version: Code 1.97.1 (e249dada235c2083c83813bd65b7f4707fb97b76, 2025-02-10T13:13:58.153Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 6.8.0-51-generic
Remote OS version: Linux x64 6.8.0-51-generic
Remote OS version: Linux x64 6.8.0-51-generic
Remote OS version: Linux x64 6.8.0-51-generic

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i5-1350P (16 x 2189)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.66GB (0.75GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote SSH: ubuntu
OS Linux x64 6.8.0-51-generic
CPUs Intel(R) Core(TM) i9-9980XE CPU @ 3.00GHz (36 x 1200)
Memory (System) 62.51GB (52.43GB free)
VM 0%
Item Value
Remote SSH: ubuntu
OS Linux x64 6.8.0-51-generic
CPUs Intel(R) Core(TM) i9-9980XE CPU @ 3.00GHz (36 x 1200)
Memory (System) 62.51GB (52.43GB free)
VM 0%
Item Value
Remote SSH: ubuntu
OS Linux x64 6.8.0-51-generic
CPUs Intel(R) Core(TM) i9-9980XE CPU @ 3.00GHz (36 x 1200)
Memory (System) 62.51GB (52.43GB free)
VM 0%
Item Value
Remote SSH: ubuntu
OS Linux x64 6.8.0-51-generic
CPUs Intel(R) Core(TM) i9-9980XE CPU @ 3.00GHz (36 x 1200)
Memory (System) 62.51GB (52.43GB free)
VM 0%
@vs-code-engineering vs-code-engineering bot added the ssh Issue in vscode-remote SSH label Feb 13, 2025
@joshspicer
Copy link
Member

Does uninstalling the Remote Tunnels extension mitigate the issue?

@joshspicer joshspicer added tunnels bug Issue identified by VS Code Team member as probable bug labels Feb 13, 2025
@jamesharris-garmin
Copy link
Author

no it actually causes the whole view to disappear

@codenie
Copy link

codenie commented Feb 17, 2025

A possible solution:
disable / uninstall "remote - tunnels" (note that "remote explorer" will be disabled automatically, the remote ssh view will disappear!), then enable "remote explorer" manually.

@jamesharris-garmin
Copy link
Author

I'll try that solution but that really sucks that we don't just handle that case correctly?

@jamesharris-garmin
Copy link
Author

That workaround works for now, but we should really consider decoupling the tunnels and ssh remote explorer views so that failing to hit the tunnels API doesn't block the remote extensions API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH tunnels
Projects
None yet
Development

No branches or pull requests

4 participants