当前位置:   article > 正文

vscode使用remote--ssh进行远程连接报错Resolver error: Error: Connecting with SSH timed out

resolver error: error: connecting with ssh timed out

vscode的报错如下所示:

[09:54:13.391] Log Level: 2
[09:54:13.396] remote-ssh@0.94.0
[09:54:13.396] win32 x64
[09:54:13.416] SSH Resolver called for "ssh-remote+10.8.109.24", attempt 1
[09:54:13.416] "remote.SSH.useLocalServer": true
[09:54:13.417] "remote.SSH.path": undefined
[09:54:13.417] "remote.SSH.configFile": undefined
[09:54:13.417] "remote.SSH.useFlock": true
[09:54:13.417] "remote.SSH.lockfilesInTmp": false
[09:54:13.417] "remote.SSH.localServerDownload": auto
[09:54:13.417] "remote.SSH.remoteServerListenOnSocket": false
[09:54:13.417] "remote.SSH.showLoginTerminal": false
[09:54:13.417] "remote.SSH.defaultExtensions": []
[09:54:13.417] "remote.SSH.loglevel": 2
[09:54:13.418] "remote.SSH.enableDynamicForwarding": true
[09:54:13.418] "remote.SSH.enableRemoteCommand": false
[09:54:13.418] "remote.SSH.serverPickPortsFromRange": {}
[09:54:13.418] "remote.SSH.serverInstallPath": {}
[09:54:13.422] SSH Resolver called for host: 10.8.109.24
[09:54:13.422] Setting up SSH remote "10.8.109.24"
[09:54:13.425] Acquiring local install lock: C:\Users\oq_po\AppData\Local\Temp\vscode-remote-ssh-7dfc61b8-install.lock
[09:54:13.427] Looking for existing server data file at c:\Users\oq_po\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-ssh\vscode-ssh-host-7dfc61b8-e8a3071ea4344d9d48ef8a4df2c097372b0c5161-0.94.0\data.json
[09:54:13.427] Using commit id "e8a3071ea4344d9d48ef8a4df2c097372b0c5161" and quality "stable" for server
[09:54:13.430] Install and start server if needed
[09:54:13.435] Checking ssh with "ssh -V"
[09:54:13.469] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3

[09:54:13.471] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[09:54:13.504] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3

[09:54:13.506] Checking ssh with "C:\Program Files\Git\usr\bin\ssh.exe -V"
[09:54:13.507] Got error from ssh: spawn C:\Program Files\Git\usr\bin\ssh.exe ENOENT
[09:54:13.507] Checking ssh with "C:\Program Files (x86)\Git\usr\bin\ssh.exe -V"
[09:54:13.508] Got error from ssh: spawn C:\Program Files (x86)\Git\usr\bin\ssh.exe ENOENT
[09:54:13.508] Checking ssh with "ssh -V"
[09:54:13.539] > OpenSSH_for_Windows_8.6p1, LibreSSL
[09:54:13.539] >  3.4.3

[09:54:13.544] Using SSH config file "C:\Users\oq_po\.ssh\config"
[09:54:13.544] askpass server listening on \\.\pipe\vscode-ssh-askpass-44bcdf76035302dc4daf4a2cc21dfc4bc244f9b1-sock
[09:54:13.545] Spawning local server with {"serverId":1,"ipcHandlePath":"\\\\.\\pipe\\vscode-ssh-askpass-e62042f24528b8563f059e75d9a122af269efb3c-sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","60833","-F","C:\\Users\\oq_po\\.ssh\\config","10.8.109.24"],"serverDataFolderName":".vscode-server","dataFilePath":"c:\\Users\\oq_po\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote-ssh\\vscode-ssh-host-7dfc61b8-e8a3071ea4344d9d48ef8a4df2c097372b0c5161-0.94.0\\data.json"}
[09:54:13.545] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\oq_po\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.94.0\\out\\local-server\\askpass.bat","VSCODE_SSH_ASKPASS_NODE":"D:\\Users\\oq_po\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\oq_po\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.94.0\\out\\askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\vscode-ssh-askpass-44bcdf76035302dc4daf4a2cc21dfc4bc244f9b1-sock"}
[09:54:13.555] Spawned 21992
[09:54:13.652] > local-server-1> Running ssh connection command: "-v -T -D 60833 -F C:\\Users\\oq_po\\.ssh\\config 10.8.109.24"
[09:54:13.658] > local-server-1> Spawned ssh, pid=27512
[09:54:13.707] stderr> OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
[09:54:13.769] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:MIzexkQpAC2MRBhwLMF8j64f1Hycb6ECRK5hSpJt2Oc
[09:54:30.564] Terminating local server
[09:54:30.568] Resolver error: Error: Connecting with SSH timed out
	at g.Timeout (c:\Users\oq_po\.vscode\extensions\ms-vscode-remote.remote-ssh-0.94.0\out\extension.js:1:584052)
	at Timeout._onTimeout (c:\Users\oq_po\.vscode\extensions\ms-vscode-remote.remote-ssh-0.94.0\out\extension.js:1:629345)
	at listOnTimeout (node:internal/timers:559:17)
	at process.processTimers (node:internal/timers:502:7)
[09:54:30.575] ------
...
...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56

我在github上找到处理方式,国内的网站没有找到;
如下所示:
处理方式
在界面中手动修改也行:
在这里插入图片描述
User Local Server的勾选去掉。

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号