Thanks Lovi !! So "ssh_private_key_file <https://www.packer.io/docs/templates/communicator.html#ssh_private_key_file>" is where we give the private key to authenticate, how can we mention the public key which gets attached to AzurevM(packer node) ?
Like in AWS we can attach a pem file while launching the machine and in config.json we can send the private key to authenticate. Packer variable for AWS ec2 builder "ssh_private_key_file" : "<private_key_file>", "ssh_keypair_name" : "<key-pair-name-while-luanching-ec2-machine>", Do we have something similar to aws ec2 builder ? On Thursday, September 26, 2019 at 6:54:25 PM UTC+5:30, lovi wrote: > > Hello, > > Maybe in there -> > https://www.packer.io/docs/templates/communicator.html#ssh_private_key_file > ? > > regards > > > On Thursday, September 26, 2019 at 12:23:58 PM UTC+2, Rajendra Kumar wrote: >> >> Hi All, >> >> Currently while baking azure vm using packer we give "ssh_username and >> ssh_password" in config.json, due to security concerns we want to use ssh >> keys to SSH into the azure packer node instead of "ssh_username and >> ssh_password" . >> >> I could not find any packer variable where can I specify the SSH keys, >> and could not find any example config.json on the internet. >> >> can somebody please help how can I achieve this, if possible please >> mention the steps and post the sample config.json. >> >> >> >> Thanks in advance! >> Rajendra >> >> >> >> >> -- 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/8215ab31-028d-4e2d-9c79-9b606f51f219%40googlegroups.com.
