You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can ssh to the remote with openSSH client using this config file, as well as with putty. But with VScode's Remote-SSH, the connection cannot be established.
Remote-SSH works perfectly with the server in LAN.
And here is the log in VScode's console:
[18:30:24.913] Log Level: 2
[18:30:24.915] remote-ssh@0.55.0
[18:30:24.915] win32 x64
[18:30:24.916] SSH Resolver called for "ssh-remote+trainer", attempt 1
[18:30:24.916] SSH Resolver called for host: trainer
[18:30:24.916] Setting up SSH remote "trainer"
[18:30:24.935] Using commit id "fcac248b077b55bae4ba5bab613fd6e9156c2f0c" and quality "stable" for server
[18:30:24.937] Install and start server if needed
[18:30:24.940] Checking ssh with "ssh -V"
[18:30:24.979] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[18:30:24.982] Running script with connection command: ssh -T -D 4632 trainer bash
[18:30:24.985] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[18:30:25.038] >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> �]0;C:\WINDOWS\System32\cmd.exe�
[18:30:25.038] Got some output, clearing connection timeout
[18:30:25.047] >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
[18:30:25.055] >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
[18:30:25.069] > CreateProcessW failed error:2
>
[18:30:25.079] > posix_spawn: No such file or directory
> 过程试图写入的管道不存在。
>
[18:30:25.353] "install" terminal command done
[18:30:25.354] Install terminal quit with output: 过程试图写入的管道不存在。
[18:30:25.354] Received install output: 过程试图写入的管道不存在。
[18:30:25.354] Stopped parsing output early. Remaining text: 过程试图写入的管道不存在。
[18:30:25.355] Failed to parse remote port from server output
[18:30:25.361] Resolver error: Error:
at Function.Create (c:\Users\yulin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:1:130564)
at Object.t.handleInstallOutput (c:\Users\yulin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:1:127671)
at I (c:\Users\yulin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:106775)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async c:\Users\yulin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:104774
at async Object.t.withShowDetailsEvent (c:\Users\yulin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:109845)
at async Object.t.resolve (c:\Users\yulin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:107960)
at async c:\Users\yulin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.55.0\out\extension.js:127:141955
[18:30:25.364] ------
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
The text was updated successfully, but these errors were encountered:
Following this, I found it works by setting connect in ssh_config's ProxyCommand to absolute path.
So this problem may be resulted from environment variables. But it's really confusing that the same config with relative path works fine for git, like this:
Steps to Reproduce:
v2ray
's"reverse" proxy
, which redirects traffic from local to remote.Here is my ssh config:
I can ssh to the remote with openSSH client using this config file, as well as with putty. But with VScode's Remote-SSH, the connection cannot be established.
Remote-SSH works perfectly with the server in LAN.
And here is the log in VScode's console:
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
The text was updated successfully, but these errors were encountered: