gpt4 book ai didi

ssh - 为什么SSH连接在vscode中超时?

转载 作者:行者123 更新时间:2023-12-02 13:45:43 25 4
gpt4 key购买 nike

我在VSCode中安装了git而不是openssl来使用Remote-SSH。但是,在完成配置文档并尝试连接到远程主机后,我失败了。错误信息如下图所示。 error info

错误信息:

[11:27:12.631] remote-ssh@0.48.0
[11:27:12.632] win32 x64
[11:27:12.656] SSH Resolver called for "ssh-remote+23321", attempt 1
[11:27:12.659] SSH Resolver called for host: 23321
[11:27:12.659] Setting up SSH remote "23321"
[11:27:12.790] Using commit id "26076a4de974ead31f97692a0d32f90d735645c0" and quality "stable" for server
[11:27:12.798] Testing ssh with ssh -V
[11:27:13.099] ssh exited with code: 0
[11:27:13.100] Got stderr from ssh: OpenSSH_8.1p1, OpenSSL 1.1.1d 10 Sep 2019
[11:27:13.128] Running script with connection command: ssh -T -D 49485 23321 bash
[11:27:13.132] Install and start server if needed
[11:27:13.151] Terminal shell path: C:\Windows\System32\cmd.exe
[11:27:30.151] Resolver error: Connecting with SSH timed out
[11:27:30.178] ------

最佳答案

我遇到了同样的问题,但是上述解决方案不适用于我的设置,
但是以下设置确实起作用:

"remote.SSH.useLocalServer": false

我从 github reported issues and fix得到了这个解决方案

关于ssh - 为什么SSH连接在vscode中超时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59978826/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com