terraform/communicator/ssh
James Bardin 1a68fdb4f6 add support for ssh host key checking
Add `host_key` and `bastion_host_key` fields to the ssh communicator
config for strict host key checking.

Both fields expect the contents of an openssh formated public key. This
key can either be the remote host's public key, or the public key of the
CA which signed the remote host certificate.

Support for signed certificates is limited, because the provisioner
usually connects to a remote host by ip address rather than hostname, so
the certificate would need to be signed appropriately. Connecting via
a hostname needs to currently be done through a secondary provisioner,
like one attached to a null_resource.
2018-02-14 15:35:41 -05:00
..
communicator.go add support for ssh host key checking 2018-02-14 15:35:41 -05:00
communicator_test.go optimization:use bytes.Equal instead of bytes.Compare 2017-09-13 20:58:14 +08:00
password.go Fix import formatting across code base 2016-04-18 17:28:46 -07:00
password_test.go Fix import formatting across code base 2016-04-18 17:28:46 -07:00
provisioner.go add support for ssh host key checking 2018-02-14 15:35:41 -05:00
provisioner_test.go Remove deprecated key_file and bastion_key_file 2016-10-12 14:30:09 -04:00
ssh_test.go test identity file parsing 2017-12-26 16:27:18 -05:00