How do I automatically migrate the host's SSH public key to my Puppet-based Vagrant Virtual Machine -
is there way migrate host's public ssh key vm? use case is:
i have user has public ssh key has access repository. creating vm distributed other developers (who have access ssh keys repository) automate git cloning of repository happens during exec-once .. should involves few manual paths possible?
ps: using https://puphpet.com/ generate vagrant machine me - not editing vagrantfile direclty.
as mentioned in comments can use vagrant file provision copy private key on vm
in vagrantfile add
vagrant.configure("2") |config| # ... other configuration config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "/home/vagrant/id_rsa.pub" end
Comments
Post a Comment