From e28e627f55d939d5bb8c0f118b6127153fb26bf6 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 27 Mar 2018 13:14:35 +0545 Subject: [PATCH] ssh: Disable GlobalKnownHostsFile with host_key_checking is off --- mitogen/ssh.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mitogen/ssh.py b/mitogen/ssh.py index 1841d484..43f8d411 100644 --- a/mitogen/ssh.py +++ b/mitogen/ssh.py @@ -93,6 +93,7 @@ class Stream(mitogen.parent.Stream): bits += [ '-o', 'StrictHostKeyChecking no', '-o', 'UserKnownHostsFile /dev/null', + '-o', 'GlobalKnownHostsFile /dev/null', ] if self.ssh_args: bits += self.ssh_args