]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: on ssh connection error, advice chmod 0600
authorSebastian Wagner <sebastian.wagner@suse.com>
Wed, 3 Feb 2021 12:56:09 +0000 (13:56 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Mon, 22 Feb 2021 16:34:11 +0000 (17:34 +0100)
Fixes: https://tracker.ceph.com/issues/46551
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit e3fa11f40ebc28782c65b4f8ee5d69237eb63d7d)

src/pybind/mgr/cephadm/serve.py

index 3401ac5144dd98a7953ad56f328b5fd0b537cbe8..3dfec9d698f9d127d9a9f3e6bd54ed394a13320f 100644 (file)
@@ -1080,6 +1080,7 @@ To add the cephadm SSH key to the host:
 To check that the host is reachable:
 > ceph cephadm get-ssh-config > ssh_config
 > ceph config-key get mgr/cephadm/ssh_identity_key > ~/cephadm_private_key
+> chmod 0600 ~/cephadm_private_key
 > ssh -F ssh_config -i ~/cephadm_private_key {user}@{host}'''
             raise OrchestratorError(msg) from e
         except Exception as ex: