801aaf1eec
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 |
||
---|---|---|
.. | ||
remote | ||
ssh | ||
winrm | ||
communicator.go | ||
communicator_mock.go | ||
communicator_test.go |