简体   繁体   English

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

[英]Homestead on windows 10 hangs on default: SSH auth method: private key

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.

I tried all available solutions, nothing seems to work. 我尝试了所有可用的解决方案,似乎没什么用。 The actual virtual machine starts, I can even log into it from virtual box. 实际的虚拟机启动,我甚至可以从虚拟框登录。

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

Vagrant up just hangs and times out after displaying SSH auth method: private key. 私有密钥显示SSH auth方法后,Vagrant up挂起并超时。 I've pasted the log. 我已经粘贴了日志。 Any ideas? 有任何想法吗?

我不确定这是否解决了您的问题,但您可以尝试使用密码vagrant而不是私钥ssh到您的VM。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM