ã¡ãã£ã¨ããã£ãã®ã§ã¡ã¢ã
ç°å¢
ä»åã®ç°å¢ã¯ä»¥ä¸ã
- ãã¹ã: Windows 10 Pro(64bit)
- Virtualbox 5.1.0
- Vagrant 1.8.5
- ã²ã¹ã: bento/centos-7.1 ã®Box
èµ·ãããã¨
Vagrantfileãæ¸ãã¦vagrant up
ãããéã«ã
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...(以ä¸ãªãã©ã¤ãç¶ã...)
ã¨ãã£ãæãã®ã¡ãã»ã¼ã¸ãåºã¦ãVMã¯ç«ã¡ä¸ãããã®ã®Vagrantããã®è¨å®ãä¸æããããªãç¾è±¡ã«ééãã¾ããã
åå
åå ã¯Vagrant 1.8.5ã®ãã°ã§ããã
ã«issueãä¸ãã£ã¦ããæ¢ã«ä¿®æ£æ¸ã¿ã§æ¬¡ã®ãã¼ã¸ã§ã³(1.8.6)ã§å¯¾å¦ãããã¨ã®äºã§ãã
対å¦æ¹æ³
ãã®åé¡ãä¿®æ£ããcommit
ã«ããæ§ã«ã[ã¤ã³ã¹ãã¼ã«å
]\embedded\gems\gems\vagrant-1.8.5\plugins\guests\linux\cap\public_key.rb
ã®56è¡ç®ã«
chmod 0600 ~/.ssh/authorized_keys
ã追å ãã¦ããVMãåä½æãã¦ããã°ç´ãã¾ãã
ç§ã¯è©¦ãã¦ããªãã®ã§ãããä¿®æ£å
容ãè¦ãã«authorized_keys
ã®ã¢ã¯ã»ã¹æ¨©è¨å®ãªã®ã§ãVMã«ãã°ã¤ã³ãã¦ç´æ¥è¨å®ãå¤æ´ãã¦ã対å¦ã§ããæ°ããã¾ãã
ã¾ãã
ã§41è¡ç®ã®
Tempfile.open("vagrant-bsd-remove-public-key") do |f|
ã®é¨åãä¿®æ£ããã¦ããã®ã§ããããã¡ãã¯ãã®ã¾ã¾ã§ããã®åé¡ã¯è§£æ±ºããæ§ã§ãã
æå¾ã«
Vagrant 1.8.6ããªãªã¼ã¹ãããã°è§£æ±ºããåé¡ã§ããããªãªã¼ã¹ã¾ã§ããã¡ãã£ã¨ããããããªã®ã§ãã®ã¨ã³ããªãæ®ãã¦ããã¾ãã