Vagrant 使用过程中几个错误的解决

/

Bad owner or permissions on .ssh/config

宿主机是 Windows 时出现过该错误。解决方法:

#  宿主机
chown -R Administrator:Users .ssh
chmod 700 .ssh
chmod 600 .ssh/*

Warning: Authentication failure. Retrying…

ssh 的密钥不匹配。解决方法:

#  客户机
wget --no-check-certificate https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub -O .ssh/authorized_keys
chmod 700 .ssh
chmod 600 .ssh/authorized_keys
chown -R vagrant:vagrant .ssh

Comments