microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.96k stars 28.77k forks source link

Can connect ssh by terminal but cannot ssh with VSCode #214788

Closed minhhoai1001 closed 2 months ago

minhhoai1001 commented 3 months ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. I can connect to server by SSH by terminal
  2. when connect by VSCode. I stuck in running server The log:

[20:40:42.148] Starting forwarding server. local port 54133 -> socksPort 54095 -> remotePort 36205 [20:40:42.148] Forwarding server listening on port 54133 [20:40:42.148] Waiting for ssh tunnel to be ready [20:40:42.149] [Forwarding server port 54133] Got connection 0 [20:40:42.150] Tunneled port 36205 to local port 54133 [20:40:42.150] Resolved "ssh-remote+118.69.90.11" to "port 54133" [20:40:42.153] Initizing new exec server for ssh-remote+118.69.90.11 [20:40:42.153] Resolving exec server at port 54133 [20:40:42.171] [Forwarding server port 54133] Got connection 1 [20:40:42.174] > [20:40:42.423] Exec server for ssh-remote+118.69.90.11 created and cached [20:40:42.426] ------

[20:40:42.495] [server] Checking /home/hoaitm1/.vscode-server/cli/servers/Stable-89de5a8d4d6205e5b11647eb6a74844ca23d2573/log.txt and /home/hoaitm1/.vscode-server/cli/servers/Stable-89de5a8d4d6205e5b11647eb6a74844ca23d2573/pid.txt for a running server...

debemdeboas commented 3 months ago

My team and I are having this issue as well. Seems to have started last week or so. Currently, nothing has worked for everyone - some solutions fix the problem for some people, but not for others.

We're trying to connect to RaspberryPi 3Bs. Our VSCode versions range from 1.90.0 to 1.80.2 (this one seems to be the most stable).

roblourens commented 2 months ago

Please share the full Remote-SSH output channel log. You can also try setting "remote.SSH.useExecServer": false to see if that makes a difference.

VSCodeTriageBot commented 2 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!