2019-04-19 19:35:15 -04:00
|
|
|
## Which SSH Options to use:
|
|
|
|
|
2019-04-23 09:42:59 -04:00
|
|
|
This chart breaks down what Packer does if you set any of the below SSH options:
|
2019-04-19 19:35:15 -04:00
|
|
|
|
|
|
|
| ssh_password | ssh_private_key_file | ssh_keypair_name | temporary_key_pair_name | Packer will... |
|
|
|
|
| --- | --- | --- | --- | --- |
|
|
|
|
| X | - | - | - | ssh authenticating with username and given password |
|
|
|
|
| - | X | - | - | ssh authenticating with private key file |
|
|
|
|
| - | X | X | - | ssh authenticating with given private key file and "attaching" the keypair to the instance |
|
|
|
|
| - | - | - | X | Create a temporary ssh keypair with a particular name, clean it up |
|
2019-04-23 09:42:59 -04:00
|
|
|
| - | - | - | - | Create a temporary ssh keypair with a default name, clean it up |
|