windows - Windows OS: Vagrant 的SSH不适用于git

标签 windows git ssh vagrant

我正在尝试在Windows控制台中使用vagrant ssh,但是它不起作用。
Vagrant已正确安装,并且我还为Windows安装了Git。
另外,使用以下命令在系统环境中安装了正确的path:

setx PATH "%PATH%;C:\Program Files (x86)\Git\bin"

我可以通过path在控制台中以及Windows系统环境中看到路径附加组件。

但是,当我在Windows控制台中使用vagrant ssh时,它给了我通常的错误:

ssh executable not found in any directories in the %PATH% variable. Is an SSH client installed? Try installing Cygwin, MinGW or Git, all of which contain an SSH client. Or use your favorite SSH client with the following authentication information shown below:

Host: 127.0.0.1 Port: 2222 Username: vagrant Private key: C:/vagtest/.vagrant/machines/default/virtualbox/private_key



如果我在控制台中数字化路径,则我具有git位置的正确路径,但这是没有用的。

如果我数字
 set PATH=%PATH%;C:\C:\Program Files (x86)\Git\bin

命令
vagrant ssh运行,但是很明显,当我关闭控制台并重新打开它时,它不会运行更多。

我真的不明白会发生什么。

最佳答案

Git Bash 窗口尝试>无用的ssh

关于windows - Windows OS: Vagrant 的SSH不适用于git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29240334/

相关文章:

c# - 捕捉事件窗口开关(也在同一个应用程序中,例如 Chrome 标签)

git 存档与 cp -R

.net - 使用SSH.NET响应交互式shell提示

c# ssh.net tunnel mysql 客户端 ioexception

node.js - Windows 中的 Flightplan - 主机 key 验证失败

windows - 批处理脚本,在服务器上调用 cmd

ios - 三位开发者如何使用Xcode8和Github进行项目协作?

git - 在使我的分支与某个远程分支相同的情况下,这些 git 命令意味着什么?

ssh - 在 Windows 中通过 cmd 为 ssh 命令或 putty 提供代理

windows - NodeJS : can't run package (windows)