VS Code Remote-SSH 连接频繁提示 could not establish connection to connecting with ssh timed out

修改了两个配置。

1、Enables a mode for connecting using a single connection shared between windows and across window reloads. This makes it faster to open new windows and reduces the number of times a password needs to be entered.

"remote.SSH.useLocalServer": false

2、Specifies the timeout in seconds used for the SSH command that connects to the remote.

"remote.ssh.connectTimeout": 15

 

参考链接:https://stackoverflow.com/questions/59978826/why-ssh-connection-timed-out-in-vscode

 

posted @ 2023-02-09 14:27  imzhi  阅读(820)  评论(0编辑  收藏  举报