diff options
author | Anca Iordache <aiordache@users.noreply.github.com> | 2020-08-20 18:33:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 18:33:45 +0200 |
commit | f1588880036c62f6dadba2d795d706602bad9882 (patch) | |
tree | 67203c330abf5702d05b18bc94f0ad35992283c7 | |
parent | 0dfae33ce800d17d23a43ebde064c146d2c99781 (diff) | |
parent | dac038aca2fd47328846a7f98457b574d31b33ab (diff) | |
download | docker-py-f1588880036c62f6dadba2d795d706602bad9882.tar.gz |
Merge pull request #2534 from HaaLeo/feature/openssh-identity-file
Support OpenSSH Identityfile option
-rw-r--r-- | docker/transport/sshconn.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/transport/sshconn.py b/docker/transport/sshconn.py index 7de0e59..9cfd998 100644 --- a/docker/transport/sshconn.py +++ b/docker/transport/sshconn.py @@ -100,6 +100,8 @@ class SSHHTTPAdapter(BaseHTTPAdapter): ) if 'hostname' in host_config: self.ssh_params['hostname'] = host_config['hostname'] + if 'identityfile' in host_config: + self.ssh_params['key_filename'] = host_config['identityfile'] if base_url.port is None and 'port' in host_config: self.ssh_params['port'] = self.ssh_conf['port'] if base_url.username is None and 'user' in host_config: |