VS Code Remote-SSH failed cause server exec and opening error

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.

New contributor

Andrew Milesa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật