Hello,

Couple of options.

1. you can tell vagrant to not change the known insecure key.

config.ssh.insert_key = false

and then on each box, just copy the private key, so they will identify
as the vagrant, and should work.

2. Use a post script at the end to that, since at that stage the keys
will have been setup.
Just not usre if will be the same private key for all the boxes, so
you need to make

- each box copy the private
- every box to add the public of the rest and authorized_keys

be sure to set correct permissions at the end

chown -R vagrant: /home/vagrant/.ssh
chmod -R 0600 /home/vagrant/.ssh
chmod 0700 /home/vagrant/.ssh

Hope this helps
Alvaro

On Sat, Oct 24, 2015 at 9:39 AM, Joaquin Menchaca <[email protected]> wrote:
> What's the easiest way to fix this?  I have a multi-system configuration,
> when I try to SSH into them on my private network, I am prompted for a
> password.  Thus inside workstation01, I try "ssh 192.168.50.5", and I am
> prompted for a password.
>
> My Vagrantfile
>
> Vagrant.configure("2") do |config|
>   config.vm.define "work" do |work|
>     work.vm.box = "hashicorp/precise64"
>     work.vm.hostname = "workstation01"
>     work.vm.network "private_network", ip: "192.168.50.4"
>   end
>
>   config.vm.define "server" do |server|
>     server.vm.box = "hashicorp/precise64"
>     server.vm.hostname = "server01"
>     server.vm.network "private_network", ip: "192.168.50.5"
>   end
> end
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/689d3fad-577f-49ee-9b17-5c7bf253e717%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0exCJmuPUqZVXuzdTKP%2BQW5tYnQu50NSVGs1X%3DExKbjJfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to