Warning: Authentication failure. Retrying...

制作vagrant base box之后启动总是出现这样的警告,记录下解决步骤:

1.vagrant用户必须存在,所以/home/vagrant目录也必须要存在的

2.导入vagrant公钥:

cd /home/vagrant
sudo -u vagrant wget https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub -O .ssh/authorized_keys
sudo -u vagrant chmod 700 .ssh
sudo -u vagrant chmod 600 .ssh/authorized_keys
sudo -u vagrant chown -R vagrant:vagrant .ssh


你可能感兴趣的:(vagrant)