LoginSignup
5
4

More than 5 years have passed since last update.

【備忘録】vagrant1.8.5でvagrant upできない時の対策

Last updated at Posted at 2016-09-19

環境

ホストOS:OSX10.11.6
vagrant1.8.5
virtual box 5.1.6

Vagrant1.8.5だと
vagrant upした時にエラーを吐く

対策

下記を弄ります
/opt/vagrant/embedded/gems/gems/vagrant-1.8.5/plugins/guests/linux/cap/public_key.rb

エディタで開きます
vi /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/plugins/guests/linux/cap/public_key.rb

56行目のここに
mv ~/.ssh/authorized_keys.tmp ~/.ssh/authorized_keys
fi

一行追加
mv ~/.ssh/authorized_keys.tmp ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
fi

これで問題なく動きました

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4