]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/ssh: set UserKnownHostsFile 31721/head
authorSage Weil <sage@redhat.com>
Mon, 18 Nov 2019 02:51:36 +0000 (20:51 -0600)
committerSage Weil <sage@redhat.com>
Tue, 19 Nov 2019 15:08:15 +0000 (09:08 -0600)
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 <sage@redhat.com>
src/pybind/mgr/ssh/module.py

index 4b9d83f8fd6a69271688fe6f213e3885460cc04e..5c9282adab2e56b369c0ce996c57ae1791117e0b 100644 (file)
@@ -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