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.55k stars 263 forks source link

[Remote-SSH Bug]: cannot connect to remote server after installing an extension #9940

Open city19992 opened 1 month ago

city19992 commented 1 month ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

Expected Behavior

I used remote-ssh to connect an ubuntu server to my win computer for several months, which is great. However, after installing an extension of Vscode today, I tried to connect server and VScode was staying at Opening Remote. I searched how to solve this problem on google and somebody seggusts that I should remove '.vscode-server' on the server and 'known_hosts' and 'known_hosts.old' on my computer. After doing so, I tried to connect again, but there is an error that remote-ssh cannot read properties of undefined (reading 'after'”). 2024-05-31_143250 I used the terminal to connect ssh, it could success all the time. I would be grateful if you could tell me how to deal with this problem.

Steps To Reproduce

No response

Remote-SSH Log

Remote-SSH Log

``` [14:38:34.840] Log Level: 2 [14:38:34.911] VS Code version: 1.89.1 [14:38:34.911] Remote-SSH version: remote-ssh@0.112.2024053015 [14:38:34.911] win32 x64 [14:38:39.103] Picking SSH host ```

city19992 commented 1 month ago

For this problem, I have solved it by deleting .ssh/config as shown in #9729

But when I want to open '/home/work', it stuck in 'opening remote' again. But I succeced to open sub-folder of '/home/work'. This is the output of windows:

2024-05-31 19:07:06.100 [info] Invoking resolveAuthority(ssh-remote)...
2024-05-31 19:07:06.100 [info] [LocalProcess0][resolveAuthority(ssh-remote,1)][0ms] obtaining proxy...
2024-05-31 19:07:06.123 [info] Started local extension host with pid 30904.
2024-05-31 19:07:06.262 [info] [LocalProcess0][resolveAuthority(ssh-remote,1)][162ms] invoking...
2024-05-31 19:07:07.272 [info] [LocalProcess0][resolveAuthority(ssh-remote,1)][1171ms] waiting...
2024-05-31 19:07:08.264 [info] [LocalProcess0][resolveAuthority(ssh-remote,1)][2163ms] waiting...
2024-05-31 19:07:09.274 [info] [LocalProcess0][resolveAuthority(ssh-remote,1)][3171ms] waiting...
2024-05-31 19:07:10.269 [info] [LocalProcess0][resolveAuthority(ssh-remote,1)][4168ms] waiting...
2024-05-31 19:07:10.485 [info] [LocalProcess0][resolveAuthority(ssh-remote,1)][4384ms] returned Managed(1)
2024-05-31 19:07:10.485 [info] resolveAuthority(ssh-remote) returned 'Managed(1)' after 4384 ms
2024-05-31 19:07:10.486 [info] Creating a socket (renderer-Management-612277ef-69fa-4f04-96e3-0ccfdb688ccf)...
2024-05-31 19:07:10.486 [info] Creating a socket (renderer-ExtensionHost-3062cf20-bd3e-417b-a9d8-e57db74da0b7)...
2024-05-31 19:07:10.542 [info] Creating a socket (renderer-Management-612277ef-69fa-4f04-96e3-0ccfdb688ccf) was successful after 57 ms.
2024-05-31 19:07:10.545 [info] Creating a socket (renderer-ExtensionHost-3062cf20-bd3e-417b-a9d8-e57db74da0b7) was successful after 60 ms.
2024-05-31 19:07:11.192 [info] [perf] Render performance baseline is 13ms
2024-05-31 19:07:14.787 [info] Started local extension host with pid 33552.

What is the problem and how to deal with it?