From 4e19cc48dfd88d0a9a8bdbbe4df4357322619d02 Mon Sep 17 00:00:00 2001 From: Guy Lichtman <1395797+glicht@users.noreply.github.com> Date: Tue, 26 Jul 2022 22:16:12 +0300 Subject: [PATCH] transport: fix ProxyCommand for SSH conn (#2993) Signed-off-by: Guy Lichtman --- docker/transport/sshconn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/transport/sshconn.py b/docker/transport/sshconn.py index 8e6beb254..76d1fa443 100644 --- a/docker/transport/sshconn.py +++ b/docker/transport/sshconn.py @@ -204,7 +204,7 @@ def _create_paramiko_client(self, base_url): host_config = conf.lookup(base_url.hostname) if 'proxycommand' in host_config: self.ssh_params["sock"] = paramiko.ProxyCommand( - self.ssh_conf['proxycommand'] + host_config['proxycommand'] ) if 'hostname' in host_config: self.ssh_params['hostname'] = host_config['hostname']