From 10a04dead97d3c712f270e27a46c9218b3346c0a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 8 Nov 2019 15:50:02 -0600 Subject: [PATCH] ceph-daemon: set ssh public identity Signed-off-by: Sage Weil --- src/ceph-daemon/ceph-daemon | 8 ++++++++ 1 file changed, 8 insertions(+) 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'): -- 2.47.3