![]() 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. |