无法使用 VS Code 远程 SSH 在资源管理器视图中查看远程目录的内容

Cannot view contents of remote directory in Explorer View with VS Code Remote SSH

提问人:SOUVIK GHOSH 提问时间:10/18/2023 最后编辑:starballSOUVIK GHOSH 更新时间:10/19/2023 访问量:12

问:

我正在使用 Microsoft 的远程 ssh 通过 ssh 与代码中的 ssh 连接到远程服务器。我的终端打开正常,但我无法在 vs code 资源管理器中查看远程目录的内容。我正在使用 Macbook 的 ventura OS。 日志的输出 -

15:21:10.600] Log Level: 2
[15:21:10.608] SSH Resolver called for "ssh-remote+ada.iiit.ac.in", attempt 1
[15:21:10.609] "remote.SSH.useLocalServer": true
[15:21:10.609] "remote.SSH.useExecServer": false
[15:21:10.609] "remote.SSH.path": undefined
[15:21:10.609] "remote.SSH.configFile": undefined
[15:21:10.609] "remote.SSH.useFlock": true
[15:21:10.609] "remote.SSH.lockfilesInTmp": false
[15:21:10.609] "remote.SSH.localServerDownload": auto
[15:21:10.609] "remote.SSH.remoteServerListenOnSocket": false
[15:21:10.609] "remote.SSH.showLoginTerminal": false
[15:21:10.609] "remote.SSH.defaultExtensions": []
[15:21:10.609] "remote.SSH.loglevel": 2
[15:21:10.609] "remote.SSH.enableDynamicForwarding": true
[15:21:10.609] "remote.SSH.enableRemoteCommand": false
[15:21:10.610] "remote.SSH.serverPickPortsFromRange": {}
[15:21:10.610] "remote.SSH.serverInstallPath": {}
[15:21:10.611] VS Code version: 1.83.1
[15:21:10.611] Remote-SSH version: [email protected]
[15:21:10.611] darwin arm64
[15:21:10.613] SSH Resolver called for host: ada.iiit.ac.in
[15:21:10.613] Setting up SSH remote "ada.iiit.ac.in"
[15:21:10.615] Acquiring local install lock: /var/folders/38/42jnccns6sg2x4g_542rfj480000gn/T/vscode-remote-ssh-971bab23-install.lock
[15:21:10.615] Looking for existing server data file at /Users/souvikg544/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-971bab23-f1b07bd25dfad64b0167beb15359ae573aecd2cc-0.106.5-tr/data.json
[15:21:10.616] Found local server running: {"remoteListeningOn":{"port":43206},"osReleaseId":"centos","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/3027","platform":"linux","connectionToken":"aa111111-a1a1-1aa1-1aaa-11a1a11aa11a","pid":7341,"ipcHandlePath":"/var/folders/38/42jnccns6sg2x4g_542rfj480000gn/T/vscode-ssh-askpass-6662b95f3709310bdd87ae4c4ddfbcd05eaf34e9.sock","socksPort":51136,"startupTime":1697622294618}
[15:21:10.619] Found running server - short-circuiting install
[15:21:10.620] Starting forwarding server. local port 51202 -> socksPort 51136 -> remotePort 43206
[15:21:10.620] Forwarding server listening on port 51202
[15:21:10.621] Waiting for ssh tunnel to be ready
[15:21:10.621] Tunneled port 43206 to local port 51202
[15:21:10.621] Resolved "ssh-remote+ada.iiit.ac.in" to "port 51202"
[15:21:10.622] [Forwarding server port 51202] Got connection 0
[15:21:10.627] ------




[15:21:10.636] [Forwarding server port 51202] Got connection 1
[15:21:10.718] [Forwarding server port 51202] Got connection 2
[15:21:11.025] [Forwarding server port 51202] Got connection 3
[15:21:11.221] [Forwarding server port 51202] Got connection 4

下图显示了该问题。您可以看到,在资源管理器的左侧显示一个空选项卡,而不是文件和目录。终端在某些实例上也没有连接,如下图所示Screenshot of vs Code terminal

macOS visual-studio-code ssh 人工智能 远程服务器

评论


答: 暂无答案