Using the previously recorded host names of the coordinator and worker nodes, use the following steps to set up passwordless SSH for the prestoadmin user.
- On the prestoadmin node, log in as prestoadmin. su – prestoadmin
-
Set up passwordless SSH (use two single quotation marks in the command line).
- ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
- cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys The cp command above is used during a fresh install. The cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys command string is used to preserve existing authorized keys added during an upgrade.
- chmod 600 ~/.ssh/authorized_keys
-
Copy the authorized keys to the coordinator and worker nodes,
one node at a time.
scp -rp ~/.ssh <host name>:~
The scp options -rp preserve the permissions on the directory and files of the target nodes.