我使用Vagrant创建了一个虚拟的Ubuntu机器,运行后:
sudo apt-get update
sudo apt-get升级
我懂了:
default: SSH username: vagrant default: SSH auth method: private key default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying... default: Warning: Remote connection disconnect. retrying...Timed out while waiting for the machine to boot. This means thatVagrant was unable to communicate with the guest machine withinthe configured ("config.vm.boot_timeout" value) time period.If you look above,you should be able to see the error(s) thatVagrant had when attempting to connect to the machine. These errorsare usually good hints as to what may be wrong.If you're using a custom Box,make sure that networking is properlyworking and you're able to connect to the machine. It is a commonproblem 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 increasethe timeout ("config.vm.boot_timeout") value.
当我调试ssh连接时,我看到了这个:
vagrant ssh -- -vvvOpenSSH_6.9p1,libreSSL 2.1.8deBUG1: Reading configuration data ~/.ssh/configdeBUG1: Reading configuration data /etc/ssh/ssh_configdeBUG1: /etc/ssh/ssh_config line 20: Applying options for *deBUG1: /etc/ssh/ssh_config line 102: Applying options for *deBUG2: ssh_connect: needpriv 0deBUG1: Connecting to 127.0.0.1 [127.0.0.1] port 2222.deBUG1: Connection established.deBUG1: key_load_public: No such file or directorydeBUG1: IDentity file ~/.vagrant/machines/default/virtualBox/private_key type -1deBUG1: key_load_public: No such file or directorydeBUG1: IDentity file ~/.vagrant/machines/default/virtualBox/private_key-cert type -1ssh_exchange_IDentification: Connection closed by remote host
这发生在linux上,在Mac OS上也是如此.
也许有一个错误或我做错了什么.
解决方法 我在OSX 10.11.6和Vagrant 1.9.1上使用laravel / homestead 1.0.1框遇到了这个问题.在Virtual Box VM设置中打开适配器上的“Cable Connected”.
虚拟盒GUI> VM设置>网络>适配器> ☑电缆已连接
要永久修复此问题,请将其添加到vagrantfile的中间.
config.vm.provIDer’virtualBox’do | vb | vb.customize [‘modifyvm’,:ID,’ – cordablected1′,’on’]结束
总结以上是内存溢出为你收集整理的linux – 更新Ubuntu guest后,Vagrant“ssh_exchange_identification:远程主机关闭连接”全部内容,希望文章能够帮你解决linux – 更新Ubuntu guest后,Vagrant“ssh_exchange_identification:远程主机关闭连接”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)