5

我已经安装了 Vagrant、PuTTY、PuTTYgen 和 Virtual Box,现在我想使用 windows 命令提示符打开到我的虚拟机的 SSH 连接。

每次我想使用vagrant ssh命令打开连接时,我都会收到此错误:

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 the PuTTY SSH client with the following
authentication information shown below:

我已经知道安装“Git”来解决这个问题的可能性!

我想知道是否可以将 PuTTY 与命令vagrant ssh而不是 OpenSSH 结合使用!

例如:

使用批处理文件或其他东西来调整语法。

4

1 回答 1

8

这里有一个 Vagrant 的官方线程,但没有结果 AFAIR。但是当谷歌搜索“vagrant putty”时,似乎存在许多用于 Vagrant 的插件带来该功能,可能是通过“hacks”。

供参考:vagrant-multi-putty。在两个简单的命令之后在 Windows 上也为我工作:vagrant plugin install vagrant-multi-puttyvagrant putty(仅适用于 Vagrant 1.1 和更新版本),

于 2013-07-10T15:46:33.167 回答