VS Code遠程鏈接報錯Could not establish connection to “hz-t2.matpool.com”
輸出的部分內容
安裝Git
git for win 國內源
https://npm.taobao.org/mirrors/git-for-windows/
下載鏈接
https://npm.taobao.org/mirrors/git-for-windows/v2.31.0.windows.1/
修改REMOTE.SSH:Path
把Git目錄下包含ssh命令的目錄添加至Path中。
也可以通過設置REMOTE.SSH:Path指定ssh路徑。
C:\Program Files\Git\usr\bin\ssh.exe
另外也可以選擇在vscode的settings.json中添加,二選一即可:
"remote.SSH.path": "C:\\Program Files\\Git\\usr\\bin\\ssh.exe"