From: Sage Weil Date: Mon, 18 Nov 2019 02:51:36 +0000 (-0600) Subject: mgr/ssh: set UserKnownHostsFile X-Git-Tag: v15.1.0~841^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=977657a4a5a4f7e9b18e853d2391418530d16eed;p=ceph.git 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 --- 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