【问题解决】使用Windows系统VSCode SSH连接Ubuntu系统下的OrangePi报错“过程试图写入的管道不存在”

使用Windows系统VSCode SSH连接Ubuntu系统下的OrangePi报错过程试图写入的管道不存在。

报错显示:
[15:19:15.633] Log Level: 2
[15:19:15.658] SSH Resolver called for "ssh-remote+192.168.3.140", attempt 1
[15:19:15.660] "remote.SSH.useLocalServer": false
[15:19:15.660] "remote.SSH.useExecServer": false
[15:19:15.661] "remote.SSH.showLoginTerminal": false
[15:19:15.661] "remote.SSH.remotePlatform": {}
[15:19:15.662] "remote.SSH.path": undefined
[15:19:15.662] "remote.SSH.configFile": undefined
[15:19:15.662] "remote.SSH.useFlock": true
[15:19:15.663] "remote.SSH.lockfilesInTmp": false
[15:19:15.664] "remote.SSH.localServerDownload": auto
[15:19:15.664] "remote.SSH.remoteServerListenOnSocket": false
[15:19:15.664] "remote.SSH.showLoginTerminal": false
[15:19:15.664] "remote.SSH.defaultExtensions": []
[15:19:15.665] "remote.SSH.loglevel": 2
[15:19:15.665] "remote.SSH.enableDynamicForwarding": true
[15:19:15.665] "remote.SSH.enableRemoteCommand": false
[15:19:15.666] "remote.SSH.serverPickPortsFromRange": {}
[15:19:15.666] "remote.SSH.serverInstallPath": {}
[15:19:15.677] VS Code version: 1.85.1
[15:19:15.677] Remote-SSH version: remote-ssh@0.107.1
[15:19:15.678] win32 x64
[15:19:15.681] SSH Resolver called for host: 192.168.3.140
[15:19:15.681] Setting up SSH remote "192.168.3.140"
[15:19:15.691] Using commit id "0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2" and quality "stable" for server
[15:19:15.700] Install and start server if needed
[15:19:16.883] Checking ssh with "D:\Program Files (x86)\VMware\VMware Workstation\bin\ssh.exe -V"
[15:19:16.888] Got error from ssh: spawn D:\Program Files (x86)\VMware\VMware Workstation\bin\ssh.exe ENOENT
[15:19:16.888] Checking ssh with "D:\Program Files\Python311\Scripts\ssh.exe -V"
[15:19:16.890] Got error from ssh: spawn D:\Program Files\Python311\Scripts\ssh.exe ENOENT
[15:19:16.890] Checking ssh with "D:\Program Files\Python311\ssh.exe -V"
[15:19:16.892] Got error from ssh: spawn D:\Program Files\Python311\ssh.exe ENOENT
[15:19:16.892] Checking ssh with "C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler\ssh.exe -V"
[15:19:16.894] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler\ssh.exe ENOENT
[15:19:16.894] Checking ssh with "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe -V"
[15:19:16.895] Got error from ssh: spawn C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe ENOENT
[15:19:16.896] Checking ssh with "D:\Python\Scripts\ssh.exe -V"
[15:19:16.897] Got error from ssh: spawn D:\Python\Scripts\ssh.exe ENOENT
[15:19:16.897] Checking ssh with "D:\Python\ssh.exe -V"
[15:19:16.899] Got error from ssh: spawn D:\Python\ssh.exe ENOENT
[15:19:16.899] Checking ssh with "D:\Scripts\ssh.exe -V"
[15:19:16.901] Got error from ssh: spawn D:\Scripts\ssh.exe ENOENT
[15:19:16.901] Checking ssh with "D:\ssh.exe -V"
[15:19:16.904] Got error from ssh: spawn D:\ssh.exe ENOENT
[15:19:16.905] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[15:19:16.907] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[15:19:16.907] Checking ssh with "C:\Windows\ssh.exe -V"
[15:19:16.909] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[15:19:16.909] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[15:19:16.910] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[15:19:16.911] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[15:19:16.912] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[15:19:16.913] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[15:19:16.970] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

[15:19:16.976] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 3640 "192.168.3.140" bash
[15:19:16.981] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[15:19:17.370] > ]0;C:\WINDOWS\System32\cmd.exe
[15:19:17.371] Got some output, clearing connection timeout
[15:19:38.417] > ssh: connect to host 192.168.3.140 port 22: Connection timed out
[15:19:38.438] > 过程试图写入的管道不存在。
[15:19:39.687] "install" terminal command done
[15:19:39.688] Install terminal quit with output: 过程试图写入的管道不存在。
[15:19:39.688] Received install output: 过程试图写入的管道不存在。
[15:19:39.689] Failed to parse remote port from server output
[15:19:39.691] Resolver error: Error: 
    at g.Create (c:\Users\***\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:642703)
    at t.handleInstallOutput (c:\Users\***\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:640069)
    at t.tryInstall (c:\Users\***\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:761983)
    at async c:\Users\***\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:722522
    at async t.withShowDetailsEvent (c:\Users\***\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:725828)
    at async I (c:\Users\***\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:719493)
    at async t.resolve (c:\Users\***\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:723199)
    at async c:\Users\***\.vscode\extensions\ms-vscode-remote.remote-ssh-0.107.1\out\extension.js:2:907003
[15:19:39.696] ------

再次确认设备ip:

确认地址正确无误:

使用管理员运行VSCode   无效

关闭防火墙              无效

加入静态秘钥            无效

  PreferredAuthentications publickey

  IdentityFile ~/.ssh/id_rsa

删除所有链接,将路径中文删除,重置电脑后 未能在第一时间解决问题

发现Ubuntu上存在一个连接的WIFI和一个未连接的WIFI

考虑是不是OrangePi这边的问题

重新连接

此时有两个WIFI接入 依然不行

重置后,连接依然失败

删除历史连接记录,更改配置

Host rk3588

  HostName 192.168.3.140

  User root

  Port 22

最终成功

最终连接成功

  • 12
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值