vs code无法ssh到centos
来源:1-3 开发环境准备-VSCode远程开发

慕UI1222164
2021-02-16
跟着老师的要求安装了最新的VS coderemote ssh在xshell和power shell上都能正常ssh到Centos但在vs code上无法ssh,报错如下could not eatablish connections to 192.168.198.128,
在OUTPUT输出的问题为
[03:14:16.741] Using SSH config file “D:\software\config”
[03:14:16.742] Running script with connection command: ssh -T -D 53680 -F “D:\software\config” “192.168.198.128” bash
[03:14:16.746] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[03:14:16.866] > The filename, directory name, or volume label syntax is incorrect.
]0;C:\WINDOWS\System32\cmd.exe
[03:14:16.866] Got some output, clearing connection timeout
[03:14:17.182] “install” terminal command done
[03:14:17.183] Install terminal quit with output: ]0;C:\WINDOWS\System32\cmd.exe
[03:14:17.183] Received install output: ]0;C:\WINDOWS\System32\cmd.exe
[03:14:17.183] Stopped parsing output early. Remaining text: ]0;C:\WINDOWS\System32\cmd.exe
[03:14:17.184] Failed to parse remote port from server output
[03:14:17.187] Resolver error: Error:
at Function.Create (c:\Users\kujin.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:64126)
at Object.t.handleInstallOutput (c:\Users\kujin.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:62865)
at k (c:\Users\kujin.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:313462)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async c:\Users\kujin.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:311339
at async Object.t.withShowDetailsEvent (c:\Users\kujin.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:406337)
at async Object.t.resolve (c:\Users\kujin.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:1:315001)
at async c:\Users\kujin.vscode\extensions\ms-vscode-remote.remote-ssh-0.64.0\out\extension.js:127:110431
[03:14:17.192] ------
The terminal process “C:\WINDOWS\System32\cmd.exe /c (type “C:\Users\kujin\AppData\Local\Temp\vscode-linux-multi-line-command-192.168.198.128-527918325.sh” | ssh -T -D 53680 -F “D:\software\config” “192.168.198.128” bash) & exit /b 0” failed to launch (exit code: 255).
Google了很久也没解决这个问题想请问老师知道问题在哪吗
1回答
-
咚咚呛
2021-02-16
错误在这里。
The filename, directory name, or volume label syntax is incorrect.
确认下ssh config的配置文件路径或者文件名是否正确。
00
相似问题