terraform/communicator/ssh
Paul Hinze 801aaf1eec communicator/ssh: sort agent after static keyfile
In the SSH client configuration, we had SSH Agent authentication listed
before the static PrivateKey loaded from the `key_file` setting.
Switching the default of the `agent` setting exposed the fact that the
SSH agent overrides the `key_file` during the handshake. By listing the
`key_file` first, we catch the provided key before any query goes out to
the agent.

Adds a key-based authentication SSH test to cover this new behavior. It
fails without the reordering on any machine with an SSH agent running.

Fixes #2614
2015-07-02 15:41:23 -05:00
..
communicator.go communicator/ssh: bastion host support 2015-06-22 18:00:18 -05:00
communicator_test.go communicator/ssh: sort agent after static keyfile 2015-07-02 15:41:23 -05:00
password.go Adding some abstractions for the communicators 2015-05-01 18:48:54 +02:00
password_test.go Adding some abstractions for the communicators 2015-05-01 18:48:54 +02:00
provisioner.go communicator/ssh: sort agent after static keyfile 2015-07-02 15:41:23 -05:00
provisioner_test.go communicator/ssh: bastion host support 2015-06-22 18:00:18 -05:00