小编jua*_* ja的帖子

VScode SSH 扩展在移动到新位置后不断断开连接

我最近搬到了另一个国家,但我远程工作,因此我认为我的工作空间不会被打扰。但是,现在我尝试在 vscode 中通过 ssh 连接到我的工作区,但连接不断断开。我通过工作区提供的 VPN 连接到工作区,虽然我可以通过 ssh 连接到我工作的 Linux 盒子,但我无法像过去几个月那样通过 vscode-remote-ssh 扩展连接到它。我的计算机上的设置没有任何变化。我在下面附加了尝试连接时 vscode 提供的输出(这是重新连接尝试的输出,但第一次连接尝试看起来完全相同)。

[15:36:11.086] ------




[15:36:11.086] SSH Resolver called for "ssh-remote+203.0.113.0", attempt 2, (Reconnection)
[15:36:11.087] SSH Resolver called for host: 203.0.113.0
[15:36:11.087] Setting up SSH remote "203.0.113.0"
[15:36:11.091] Using commit id "e5e9e69aed6e1984f7499b7af85b3d05f9a6883a" and quality "stable" for server
[15:36:11.092] Install and start server if needed
[15:36:11.096] Using SSH config file "C:\Users\windowsUser\.ssh\config"
[15:36:11.096] Running script with connection command: ssh -T -D 53043 -F "C:\Users\windowsUser\.ssh\config" 203.0.113.0 bash
[15:36:11.101] Terminal shell path: …
Run Code Online (Sandbox Code Playgroud)

ssh visual-studio-code vscode-remote

14
推荐指数
2
解决办法
2万
查看次数

标签 统计

ssh ×1

visual-studio-code ×1

vscode-remote ×1