Visual studio code 扩展 ssh 连接失败:The "path" argument must be of type string. Received type undefined

SSH 连接远程终端失败,提示:could not establish connection to XXX, the path argument must be of type string, received type undefined。

原因:找不到 ssh 可执行程序。

解决方法:进入用户设置,添加 ssh 可执行文件绝对路径。

按 F1,输入 Remote-SSH: Settings,找到 Remote.SSH: Path,注意,不是 Remote.SSH: Config File。使用 Git 包内的 ssh 程序:C:\Program Files\Git\usr\bin\ssh.exe

重新连接,成功,问题解决。

参考:https://qiita.com/Gushi_maru/items/bacc2052c91983ed7094

你可能感兴趣的:(Visual studio code 扩展 ssh 连接失败:The "path" argument must be of type string. Received type undefined)