相关疑难解决方法(0)

VSCode 远程 SSH 连接失败

我正在尝试使用 Remote-SSH 扩展来编辑 Debian 服务器上的文件。SSH 连接已正确建立,但随后我收到一条错误消息:

Failed to connect to the remote extension host server
Run Code Online (Sandbox Code Playgroud)

和日志:

[13:19:04.182] Remote server is listening on port 51569
[13:19:04.182] Parsed server configuration: {"agentPort":51569,"osReleaseId":"debian","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","tmpDir":"/tmp"}
[13:19:04.184] Starting forwarding server. localPort 59828 -> socksPort 59825 -> remotePort 51569
[13:19:04.185] Forwarding server listening on 59828
[13:19:04.185] Waiting for ssh tunnel to be ready
[13:19:04.186] Tunneled remote port 51569 to local port 59828
[13:19:04.186] Resolved "ssh-remote+home-debian.web-data.host" to "127.0.0.1:59828"
[13:19:04.187] [Forwarding server 59828] Got connection 0
[13:19:04.195] ------
[13:19:04.208] [Forwarding …
Run Code Online (Sandbox Code Playgroud)

ssh remote-debugging visual-studio-code vscode-remote

3
推荐指数
5
解决办法
1万
查看次数