microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.64k stars 282 forks source link

SSH connection established but not working. #8471

Closed tom-mart closed 1 year ago

tom-mart commented 1 year ago

Type: Bug

The issue appears when trying to connect to remote host via Remote-SSH. In the Explorer window it reads "connected to remote" with "Open Folder" button yet the button doesn't do anything when clicked and bottom left corner status icon says "Opening Remote" with progress wheel spinning.

Running nestat on the remote host shows that VSC connection is ESTABLISHED on port 22.

Screenshot: https://i.stack.imgur.com/otWBA.png

Extension version: 0.102.0 VS Code version: Code 1.78.1 (6a995c4f4cc2ced6e3237749973982e751cb0bf9, 2023-05-04T09:46:23.602Z) OS version: Linux x64 6.2.6-76060206-generic Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 3600 6-Core Processor (12 x 3261)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|0, 0, 0| |Memory (System)|15.56GB (8.56GB free)| |Process Argv|--unity-launch --crash-reporter-id 4c1ead70-c3dc-471e-8378-993b9f81f52c| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|pop| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|pop| |XDG_SESSION_TYPE|x11|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 vsccc:30610678 2e4cg342:30602488 pyind779:30671433 89544117:30613380 pythonsymbol12:30671437 showlangstatbar:30737416 vsccsb:30705552 azdwalk:30721579 pythonms35:30701012 pythonfmttext:30731395 pythoncmvfstr:30731969 fixshowwlkth:30730052 ```
tom-mart commented 1 year ago

vscode-app-1683797753809.log

roblourens commented 1 year ago

Please share the log from the Remote-SSH output channel

tom-mart commented 1 year ago

Thank you, this question solved the issue. My bad:

May 12 08:47:05 NASPi sshd[629597]: refused local port forward: originator 127.0.0.1 port 40190, target 127.0.0.1 port 36449

May 12 08:47:06 NASPi sshd[629597]: refused local port forward: originator 127.0.0.1 port 40200, target 127.0.0.1 port 36449

Solved by editing /etc/ssh/sshd_config and changing AllowTcpForwarding from "no" to "yes".