SSH onto Vagrant Box With Different Username

后端 未结 4 1239
梦如初夏
梦如初夏 2020-12-22 22:46

Rather than ssh-ing onto my Vagrant virtual machine with a \"vagrant\" user-name and password, I\'d like to use kevin/kevin.

I modified my Vagrantfile t

4条回答
  •  天命终不由人
    2020-12-22 23:22

    Create a vagrant file like the one below. Note that we are bootstrapping the vagrant user to immediately change to the 'kevin' user that we created.

    bootstrap = <
    
                                     
                  
提交回复
热议问题