»SSH Key
Type: sshkey
Datasource used to generate SSH keys
»Parameters and output
»Optional
-
name
(string) - Key name, must be unique acrosssshkey
datasource instances. Defaults topacker
.
»Output data
-
public_key
(string) - SSH public key in "ssh-rsa ..." format -
private_key_path
(string) - Path to SSH private key
»Example
»Notes
- Plugin generates 2048-bit RSA keys
- Private key is cached in
PACKER_CACHE_DIR
(by defaultpacker_cache
directory is used). If you delete cached private key it will be regenerated on the next run. - Packer 1.7.3 or later is required