From: Sebastian Wagner Date: Wed, 3 Feb 2021 12:56:09 +0000 (+0100) Subject: mgr/cephadm: on ssh connection error, advice chmod 0600 X-Git-Tag: v17.1.0~3047^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39259%2Fhead;p=ceph.git mgr/cephadm: on ssh connection error, advice chmod 0600 Fixes: https://tracker.ceph.com/issues/46551 Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index f988295fda04a..d5e601adea67e 100644 --- a/src/pybind/mgr/cephadm/serve.py +++ b/src/pybind/mgr/cephadm/serve.py @@ -1069,6 +1069,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: