Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not provide the key if it comes from the SSH configuration
This is a followup of #628 where this change was initially pushed but reverted because I didn't remember why I did it. Before #628, when an identity is provided in the SSH configuration, it was not copied in `_conf_ssh_private_key_file` due to a bug. After fixing the bug in #628, the key is now copied. However, the SSH configuration is provided to the `connect()` method which will use it if needed. Therefore, this is not needed. Moreover, if the key is provided by an agent and/or encrypted, this won't work as, later in the code, `allow_agent` will be set to `False` due to the presence of a private key.
- Loading branch information