Skip to content

Commit f158888

Browse files
authored
Merge pull request #2534 from HaaLeo/feature/openssh-identity-file
Support OpenSSH Identityfile option
2 parents 0dfae33 + dac038a commit f158888

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/transport/sshconn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def __init__(self, base_url, timeout=60,
100100
)
101101
if 'hostname' in host_config:
102102
self.ssh_params['hostname'] = host_config['hostname']
103+
if 'identityfile' in host_config:
104+
self.ssh_params['key_filename'] = host_config['identityfile']
103105
if base_url.port is None and 'port' in host_config:
104106
self.ssh_params['port'] = self.ssh_conf['port']
105107
if base_url.username is None and 'user' in host_config:

0 commit comments

Comments
 (0)