問題
最近在使用 vscode 並使用 Remote SSH 透過 SSH 連線至伺服器做事時,遇到了無法連線的問題。
如圖所示,在嘗試連線時會卡在歡迎訊息然後出現 Resolver error: Connecting with SSH timed out
解法
在設定加入
1 | "remote.SSH.useLocalServer": false |
應可解決
參考
ssh -T timeouts with Remote - SSH.
https://github.com/microsoft/vscode-remote-release/issues/1721
why ssh connection timed out in vscode?
https://stackoverflow.com/questions/59978826/why-ssh-connection-timed-out-in-vscode
Can’t connect with ssh: Terminating local server. Resolver error: Error: Connecting with SSH timed out
https://github.com/microsoft/vscode-remote-release/issues/3723
如果你覺得這篇文章很棒,請你不吝點讚 (゚∀゚)