Windows 10上的Homestead默认挂起:SSH身份验证方法:私钥

时间:2016-10-09 18:47:24

标签: windows vagrant homestead

Net::SSH::ConnectionTimeout>
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO ssh: Attempting SSH connection...
 INFO ssh: Attempting to connect to SSH...
 INFO ssh:   - Host: 127.0.0.1
 INFO ssh:   - Port: 2222
 INFO ssh:   - Username: vagrant
 INFO ssh:   - Password? false
 INFO ssh:   - Key Path: ["C:/Users/myuser/.vagrant.d/insecure_private_key"]
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO ssh: SSH not ready: #<Vagrant::Errors::NetSSHException: An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.

If the problem persists, please report a bug to the net-ssh project.

我尝试了所有可用的解决方案,似乎没有任何效果。实际的虚拟机启动,我甚至可以从虚拟框中登录。

Virtual Box versino:5.1.6 Vagrant版本:1.8.6 操作系统:Windows 10

在显示SSH身份验证方法后,Vagrant up挂起并超时:私钥。我已粘贴日志。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我不确定这是否解决了您的问题,但您可以尝试使用密码<select class="form-control" id="assignee" name="assignee"> <?php foreach ($employees as $e) : ?> <option value="<?= $e ?>" <?php if ($assignee == $e) echo 'selected' ?>><?= $e ?></option> <?php endforeach; ?> </select> 而不是您的私钥ssh进入您的虚拟机。

相关问题