Skip to content

Commit

Permalink
Merge pull request #2534 from HaaLeo/feature/openssh-identity-file
Browse files Browse the repository at this point in the history
Support OpenSSH Identityfile option
  • Loading branch information
aiordache committed Aug 20, 2020
2 parents 0dfae33 + dac038a commit f158888
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/transport/sshconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def __init__(self, base_url, timeout=60,
)
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:
Expand Down

0 comments on commit f158888

Please sign in to comment.