From 57c6e51755da82d4eafd82690765e2589d8a277c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 30 Oct 2019 14:09:36 -0500 Subject: [PATCH] ceph-daemon: no extra newline needed in authorized_keys file Signed-off-by: Sage Weil --- src/ceph-daemon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-daemon b/src/ceph-daemon index a2ed360964c..a5c708e9655 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -1064,7 +1064,7 @@ def command_bootstrap(): logger.info('Adding key to root@localhost\'s authorized_keys...') with open('/root/.ssh/authorized_keys', 'a') as f: os.fchmod(f.fileno(), 0o600) # just in case we created it - f.write(ssh_pub + '\n') + f.write(ssh_pub.strip() + '\n') logger.info('Enabling ssh module...') CephContainer( -- 2.39.5