Vagrant ssh 'private_key_path` file must exist

前端 未结 2 1344
故里飘歌
故里飘歌 2021-01-13 10:51

I\'m getting this error during vagrant up

There are errors in the configuration of this machine. Please fix
the following errors and try again:

SSH:
* `priv         


        
相关标签:
2条回答
  • 2021-01-13 10:55

    So in my case I was using cygwin with windows, and I received:

    * `private_key_path` file must exist: 
    C:\cygwin64\home\basic.user/.vagrant.d/insecure_private_key
    

    After a few minutes of investigation I realized the VAGRANT_HOME environment variable was not ok, so exporting the right environment variable did the job:

    VAGRANT_HOME=/cygdrive/c/Users/basic.user
    export VAGRANT_HOME
    
    0 讨论(0)
  • 2021-01-13 11:04

    insecure_key should be a file containing an SSH key. The file should be in the same folder where you vagrant up. The following is an alternative:

    curl -o insecure_key -fSL https://github.com/phusion/baseimage-docker/raw/master/image/insecure_key chmod 600 insecure_key vagrant ssh

    0 讨论(0)
提交回复
热议问题