The temporary ssh keypair should not be on the server, it's used for ansible to authorize against the local proxy that ansible runs towards. This local proxy marchals the traffic and forwards it to the normal packer communicator.
On Tue, Apr 30, 2019, 13:05 Edoardo Tenani <[email protected]> wrote: > > You script doesn't properly pass arguments. > > T^T > > Replacing $@ with a "$@" solved this issue. I was pretty sure I had > tried all passible bash expansions combinations, but obviously not. > > Thank you for you help! > > I also discovered that the ansible provisioner create a one-off keypair, > but (in my case at least) it does not get authorized on the server, > resulting in ssh authentication error through the ssh proxy. Is this > expected? How am I supposed to add the public key to the authorized key > on the server in this case? > > I was expecting the provisioner to use the same settings specified for > the communicator in the builder, why it does not? > > Thank you, > Edoardo > > -- > 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/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" 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/packer-tool/f5e3cfcc-9a3a-9c8d-626a-0dd6a185d2ef%40arduino.cc > . > 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/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" 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/packer-tool/CALz9Rt9Tg3d%2BMkMxmLZgudf_6nTbe%3DgtgLJLyK1eEhd%2BLMw3Ag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
