From a5bd70d8b73030b3a2976d8d88b7c37ce6021ded Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 12 Mar 2020 17:18:58 -0500 Subject: [PATCH] doc/cephadm: use ssh-copy-id Signed-off-by: Sage Weil --- doc/cephadm/index.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/cephadm/index.rst b/doc/cephadm/index.rst index 6ccd105aaf1..ddce3b33025 100644 --- a/doc/cephadm/index.rst +++ b/doc/cephadm/index.rst @@ -74,7 +74,7 @@ This command does a few things: key is written to ``ceph.client.admin.keyring`` in the local directory. * Generates a new SSH key, and adds the public key to the local root user's ``/root/.ssh/authorized_keys`` file. A copy of the public key is written - to ``ceph.pub`` in the local directory. + to ``ceph.pub`` in the current directory. Interacting with the cluster ============================ @@ -131,9 +131,9 @@ Adding hosts to the cluster For each new host you'd like to add to the cluster, you need to do two things: #. Install the cluster's public SSH key in the new host's root user's - ``authorized_keys`` file. For example,:: + ``authorized_keys`` file. This is easy with the ``ssh-copy-id`` script:: - [monitor 1] # cat ceph.pub | ssh root@*newhost* tee -a /root/.ssh/authorized_keys + [monitor 1] # ssh-copy-id -f -i ceph.pub root@*newhost* #. Tell Ceph that the new node is part of the cluster:: -- 2.39.5