小编car*_*uri的帖子

如何在 Windows 中通过 git bash 获取 vscode-remote-ssh 扩展连接?

我已将 vs 代码配置为在 Windows 7 中使用 git bash 作为终端。
"terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe"

我已启用基于 SSH 密钥的身份验证以远程访问主机。所有这些都可以在 VS Code 的终端内正常工作。

但是,当使用 vscode-remote SSH 扩展连接到主机时,我收到一个错误,因为它尝试使用“终端进程命令‘cmd.exe’”而不是 git bash 进行连接。

我在 vs 代码中检查了我的终端设置配置,它指向 git bash.exe

我在 vs code 中使用了终端扩展,它打开了一个 git bash 并成功连接到主机

我是否缺少强制远程 SSH 使用 git bash 进行连接的设置?

vscode-remote

3
推荐指数
2
解决办法
4527
查看次数

标签 统计

vscode-remote ×1