Skip to content

Commit bc6777e

Browse files
riedelulyssessouza
authored andcommitted
set host key policy for ssh transport to WarningPolicy()
Signed-off-by: Till Riedel <[email protected]>
1 parent 1e56722 commit bc6777e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/transport/sshconn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def __init__(self, base_url, timeout=60,
8181
logging.getLogger("paramiko").setLevel(logging.WARNING)
8282
self.ssh_client = paramiko.SSHClient()
8383
self.ssh_client.load_system_host_keys()
84+
self.ssh_client.set_missing_host_key_policy(paramiko.WarningPolicy())
8485

8586
self.base_url = base_url
8687
self._connect()

0 commit comments

Comments
 (0)