Using packer to copy file from host to generated image without password Using packer to copy file from host to generated image without password shell shell

Using packer to copy file from host to generated image without password


You should use the file provisioner, something like:

"provisioners": [  {    "type": "file",    "source": "source_file",    "destination": "dest"  },  {    "type": "script",    "inline": [ "echo do something here" ]  }]

See documentation: provisioners