Skip to content
Prev Previous commit
Next Next commit
set host key policy for ssh transport to WarningPolicy()
Signed-off-by: Till Riedel <[email protected]>
  • Loading branch information
riedel authored and ulyssessouza committed Feb 6, 2020
commit bc6777eb01d34d5aacc38c6579ce6ae3a1569e8d
1 change: 1 addition & 0 deletions docker/transport/sshconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def __init__(self, base_url, timeout=60,
logging.getLogger("paramiko").setLevel(logging.WARNING)
self.ssh_client = paramiko.SSHClient()
self.ssh_client.load_system_host_keys()
self.ssh_client.set_missing_host_key_policy(paramiko.WarningPolicy())

self.base_url = base_url
self._connect()
Expand Down