Vagrant - 默认:SSH身份验证方法:私钥Timeout

时间:2017-03-27 18:25:37

标签: networking ssh windows-7 vagrant vagrantfile

真的很难解决这个问题:

我正试图流浪汉'一切似乎都没问题,直到我达到一定程度:

==> default: The cookbook path 'C:/home/webs/cookbooks' doesn't exist. Ignoring...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 (guest) => 8081 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

的配置:

Vagrant 1.8.7

的插件:

vagrant-berkshelf (5.1.1)
vagrant-hostmanager (1.8.5)
vagrant-share (1.1.6, system)
vagrant-triggers (0.5.3)
vagrant-vsphere (1.12.0)

使用:

Oracle Virtual Box v5.1.8
Chef v1.1.16
Windows-7

到目前为止我尝试了什么:

  1. 检查虚拟化是否已启用。
  2. 删除以下文件夹:[。vagrant.d,.VirtualBox] [在此处输入图像说明] 1并重新安装所有插件。
  3. 使用gui设置为true运行,我没有看到任何.ssh文件夹。
  4. 关掉防火墙。
  5. 我有其他计算机具有相同的版本并且运行得很好。所以我可以比较。但我没有更多线索如何从这里继续......

1 个答案:

答案 0 :(得分:0)

找到一个解决方案:一个名为:Web Companion Lavasoft的程序阻止了ssh通信的创建,我将其删除并且有效。