SSH Key
@ivoronin
The SSHkey plugin can be used for generating SSH keys for configuring private key authentication.
- Community
Updated 2 months ago
- GitHub(opens in new tab)
SSH Key
Type: sshkey
Data source used to generate SSH keys
Parameters and output
Optional
name(string) - Key name, must be unique acrosssshkeydatasource instances. Defaults topacker.type(string) - Key type, must be eitherrsaored25519. Defaults torsa.
Output data
public_key(string) - SSH public key in "ssh-rsa ..." formatprivate_key_path(string) - Path to SSH private key
Notes
- Private key is cached in
PACKER_CACHE_DIR(by defaultpacker_cachedirectory is used). If you delete cached private key it will be regenerated on the next run. - Packer 1.7.3 or later is required