This commit is contained in:
Megan Marsh 2019-06-21 16:32:35 -07:00
parent 06a0db9350
commit 87300df368
1 changed files with 19 additions and 3 deletions

View File

@ -151,3 +151,19 @@ Sample for `hashicorp/precise64` with virtualbox provider.
]
}
```
## A note on SSH connections
Currently this builder only works for SSH connections, and automatically fills
in all information needed for the ssh communicator using vagrant's ssh-config.
If you would like to connect via a different username or authentication method
than is produced when you call `vagrant ssh-config`, then you must provide the
`ssh_username` and all other relevant authentication information (e.g.
`ssh_password` or `ssh_private_key_file`)
By providing the `ssh_username`, you're telling Packer not to use the vagrant
ssh config, except for determining the host and port for the virtual machine to
connect to.