From 977657a4a5a4f7e9b18e853d2391418530d16eed Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 17 Nov 2019 20:51:36 -0600 Subject: [PATCH] mgr/ssh: set UserKnownHostsFile Set this to /dev/null, since we have StrictHostKeyChecking off anyway. This gets rid of messages to stderr every time we connect to a new host. Signed-off-by: Sage Weil --- src/pybind/mgr/ssh/module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/ssh/module.py b/src/pybind/mgr/ssh/module.py index 4b9d83f8fd6..5c9282adab2 100644 --- a/src/pybind/mgr/ssh/module.py +++ b/src/pybind/mgr/ssh/module.py @@ -33,7 +33,8 @@ logger = logging.getLogger(__name__) DEFAULT_SSH_CONFIG = ('Host *\n' 'User root\n' - 'StrictHostKeyChecking no\n') + 'StrictHostKeyChecking no\n' + 'UserKnownHostsFile /dev/null\n') # high-level TODO: # - bring over some of the protections from ceph-deploy that guard against -- 2.47.3