经常遇到使用Vagrant up 后提示如下:
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
可能更换过VirtualBox版本就可能出现这样的情况
解决方法:
1、使用大家百度到的把Vagrantfile配置上使用用户名密码登录就可以了
2、我们找到vagrant.d目录下的boxes下的主机目录例如:
G:\vagrant.d\boxes\centos6-nmps-Vagrant-20170809_01.VirtualBo.box\0\virtualbox
下的vagrant_private_key
复制里面的内容替换
G:\vagrant.d\insecure_private_key
重新vagrant up 后就可以了
阅读(3480) | 评论(0) | 转发(0) |