From 855dba9dea336750091de20c0a741ac200715417 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 3 Feb 2021 13:56:09 +0100 Subject: [PATCH] mgr/cephadm: on ssh connection error, advice chmod 0600 Fixes: https://tracker.ceph.com/issues/46551 Signed-off-by: Sebastian Wagner (cherry picked from commit e3fa11f40ebc28782c65b4f8ee5d69237eb63d7d) --- src/pybind/mgr/cephadm/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index ae327c0cd800d..989a30fca5678 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1041,6 +1041,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: -- 2.39.5