Install additional development packages for the tools to properly compile and install sudo apt-get install -y gcc build-essential linux-headers-serverĭo any change that you want and shutdown the VM. Restart ssh service using sudo service ssh restart Open sudo vi /etc/ssh/sshd_config and change PubKeyAuthentication yesĪuthorizedKeysFile %h/.ssh/authorized_keys Put ssh key from vagrant user mkdir -p /home/vagrant/.sshĬhmod 0600 /home/vagrant/.ssh/authorized_keys Vagrant user should be able to run sudo commands without a password prompt sudo visudo -f /etc/sudoers.d/vagrantĭo whatever you want to customize your vagrant box and install openssh-server if not installed previously sudo apt-get install -y openssh-server After spending time with vagrant i got the solution for custom box.įirst of all install any Linux OS in libvirt/qvm and login to it for customization and create vagrant user with password vagrant adduser vagrant
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |