From: Sage Weil Date: Fri, 8 Nov 2019 21:50:02 +0000 (-0600) Subject: ceph-daemon: set ssh public identity X-Git-Tag: v15.1.0~973^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31500%2Fhead;p=ceph.git ceph-daemon: set ssh public identity Signed-off-by: Sage Weil --- diff --git a/src/ceph-daemon/ceph-daemon b/src/ceph-daemon/ceph-daemon index 12880395985e..97197745ef36 100755 --- a/src/ceph-daemon/ceph-daemon +++ b/src/ceph-daemon/ceph-daemon @@ -1095,6 +1095,14 @@ def command_bootstrap(): ], { tmp_key.name: '/tmp/key:z', }) + cli([ + 'config-key', + 'set', + 'mgr/ssh/ssh_identity_pub', + '-i', '/tmp/pub' + ], { + tmp_pub.name: '/tmp/pub:z', + }) logger.info('Adding key to root@localhost\'s authorized_keys...') if not os.path.exists('/root/.ssh'):