I can not connect my remote ubuntu server via Remote-SSH extension of VS Code.
Here’s my error log.
[01:10:02.844] Log Level: 2
[01:10:02.853] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a2253616b7572615f7669705f3031227d", attempt 1
[01:10:02.853] "remote.SSH.useLocalServer": false
[01:10:02.853] "remote.SSH.useExecServer": false
[01:10:02.854] "remote.SSH.showLoginTerminal": false
[01:10:02.854] "remote.SSH.remotePlatform": {"DellPowerEdgeT440":"linux","T440_Server":"linux","T440_Sakura":"linux","Sakura_vip":"linux","Sakura_free":"linux"}
[01:10:02.854] "remote.SSH.path": undefined
[01:10:02.854] "remote.SSH.configFile": undefined
[01:10:02.854] "remote.SSH.useFlock": true
[01:10:02.854] "remote.SSH.lockfilesInTmp": false
[01:10:02.856] "remote.SSH.localServerDownload": auto
[01:10:02.856] "remote.SSH.remoteServerListenOnSocket": false
[01:10:02.856] "remote.SSH.showLoginTerminal": false
[01:10:02.856] "remote.SSH.defaultExtensions": []
[01:10:02.856] "remote.SSH.loglevel": 2
[01:10:02.856] "remote.SSH.enableDynamicForwarding": true
[01:10:02.856] "remote.SSH.enableRemoteCommand": false
[01:10:02.856] "remote.SSH.serverPickPortsFromRange": {}
[01:10:02.857] "remote.SSH.serverInstallPath": {}
[01:10:02.859] VS Code version: 1.89.1
[01:10:02.859] Remote-SSH version: [email protected]
[01:10:02.859] win32 x64
[01:10:02.860] SSH Resolver called for host: Sakura_vip_01
[01:10:02.860] Setting up SSH remote "Sakura_vip_01"
[01:10:02.862] Using commit id "dc96b837cf6bb4af9cd736aa3af08cf8279f7685" and quality "stable" for server
[01:10:02.864] Install and start server if needed
[01:10:04.024] Checking ssh with "C:Windowssystem32ssh.exe -V"
[01:10:04.026] Got error from ssh: spawn C:Windowssystem32ssh.exe ENOENT
[01:10:04.026] Checking ssh with "C:Windowsssh.exe -V"
[01:10:04.027] Got error from ssh: spawn C:Windowsssh.exe ENOENT
[01:10:04.027] Checking ssh with "C:WindowsSystem32Wbemssh.exe -V"
[01:10:04.028] Got error from ssh: spawn C:WindowsSystem32Wbemssh.exe ENOENT
[01:10:04.028] Checking ssh with "C:WindowsSystem32WindowsPowerShellv1.0ssh.exe -V"
[01:10:04.029] Got error from ssh: spawn C:WindowsSystem32WindowsPowerShellv1.0ssh.exe ENOENT
[01:10:04.029] Checking ssh with "C:WindowsSystem32OpenSSHssh.exe -V"
[01:10:04.047] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
[01:10:04.049] Running script with connection command: "C:WindowsSystem32OpenSSHssh.exe" -T -D 51179 "Sakura_vip_01" bash
[01:10:04.050] Terminal shell path: C:WindowsSystem32cmd.exe
[01:10:04.400] > kex_exchange_identification: Connection closed by remote host
> Connection closed by <my_server_ip> port <my_server_port>
> The process tried to write to a nonexistent pipe.
> ]0;C:WindowsSystem32cmd.exe
[01:10:04.400] Got some output, clearing connection timeout
[01:10:05.690] "install" terminal command done
[01:10:05.690] Install terminal quit with output: ]0;C:WindowsSystem32cmd.exe
[01:10:05.690] Received install output: ]0;C:WindowsSystem32cmd.exe
[01:10:05.690] Failed to parse remote port from server output
[01:10:05.691] Resolver error: Error:
at g.Create (c:UsersUser01.vscodeextensionsms-vscode-remote.remote-ssh-0.107.2023091115outextension.js:2:637875)
at t.handleInstallOutput (c:UsersUser01.vscodeextensionsms-vscode-remote.remote-ssh-0.107.2023091115outextension.js:2:635278)
at t.tryInstall (c:UsersUser01.vscodeextensionsms-vscode-remote.remote-ssh-0.107.2023091115outextension.js:2:756874)
at async c:UsersUser01.vscodeextensionsms-vscode-remote.remote-ssh-0.107.2023091115outextension.js:2:717466
at async t.withShowDetailsEvent (c:UsersUser01.vscodeextensionsms-vscode-remote.remote-ssh-0.107.2023091115outextension.js:2:720719)
at async C (c:UsersUser01.vscodeextensionsms-vscode-remote.remote-ssh-0.107.2023091115outextension.js:2:714380)
at async t.resolve (c:UsersUser01.vscodeextensionsms-vscode-remote.remote-ssh-0.107.2023091115outextension.js:2:718115)
at async c:UsersUser01.vscodeextensionsms-vscode-remote.remote-ssh-0.107.2023091115outextension.js:2:901824
[01:10:05.694] ------
[01:10:06.284] Opening exec server for ssh-remote+7b22686f73744e616d65223a2253616b7572615f7669705f3031227d
[01:10:06.298] Initizing new exec server for ssh-remote+7b22686f73744e616d65223a2253616b7572615f7669705f3031227d
[01:10:06.299] Using commit id "dc96b837cf6bb4af9cd736aa3af08cf8279f7685" and quality "stable" for server
[01:10:06.300] Install and start server if needed
[01:10:06.314] Opening exec server for ssh-remote+7b22686f73744e616d65223a2253616b7572615f7669705f3031227d
[01:10:13.894] getPlatformForHost was canceled
[01:10:13.894] Exec server for ssh-remote+7b22686f73744e616d65223a2253616b7572615f7669705f3031227d failed: Error:
[01:10:13.894] Existing exec server for ssh-remote+7b22686f73744e616d65223a2253616b7572615f7669705f3031227d errored (Error: )
[01:10:13.894] Initizing new exec server for ssh-remote+7b22686f73744e616d65223a2253616b7572615f7669705f3031227d
[01:10:13.895] Using commit id "dc96b837cf6bb4af9cd736aa3af08cf8279f7685" and quality "stable" for server
[01:10:13.896] Error opening exec server for ssh-remote+7b22686f73744e616d65223a2253616b7572615f7669705f3031227d: Error:
VS Code version:
Version: 1.89.1 (user setup)
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date: 2024-05-07T05:13:33.891Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.22631
What should I do to resolve this terrible issue?
I tried to delete my ssh config, that didn’t work.
I tried to delete the .vscode-server file on my remote machine and I still failed.
I can log into my server via ssh cli.
I don’t know why there’s ssh-remote+7b22686f73744e616d65223a2253616b7572615f7669705f3031227d
which is not my current VS Code version.
Andrew Milesa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.