From 0f1d99befc9de7d9b8221a94d6cf251c16c9b989 Mon Sep 17 00:00:00 2001 From: henktillman Date: Thu, 25 Jun 2020 10:22:54 -0700 Subject: [PATCH] [autoscaler] Remove Fingerprint checking (#9133) --- python/ray/autoscaler/updater.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/ray/autoscaler/updater.py b/python/ray/autoscaler/updater.py index 32c5f2f17..589d4388e 100644 --- a/python/ray/autoscaler/updater.py +++ b/python/ray/autoscaler/updater.py @@ -169,7 +169,14 @@ class SSHCommandRunner: def get_default_ssh_options(self, connect_timeout): OPTS = [ ("ConnectTimeout", "{}s".format(connect_timeout)), + # Supresses initial fingerprint verification. ("StrictHostKeyChecking", "no"), + # SSH IP and fingerprint pairs no longer added to known_hosts. + # This is to remove a "REMOTE HOST IDENTIFICATION HAS CHANGED" + # warning if a new node has the same IP as a previously + # deleted node, because the fingerprints will not match in + # that case. + ("UserKnownHostsFile", os.devnull), ("ControlMaster", "auto"), ("ControlPath", "{}/%C".format(self.ssh_control_path)), ("ControlPersist", "10s"),