The guide assumes that you are using /mirror
as your home directory on all cluster nodes (as well as on the master node, which is ub0
for the guide and pythagoras
for you).
If you are not using /mirror
as your home directory (or, more precisely, if your home directory is not shared among all nodes), the following line:
mpiu@ub0:~/.ssh$ cat id_rsa.pub >> authorized_keys
will simply add your key to the list of authorized keys on ub0
(i.e. on pythagoras
).
If your home directory is not shared among nodes, you need to add your public key to the authorized_keys
file on each node.
One way of doing this is to use ssh-copy-id
:
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
and similarly for all other nodes
Note: At the beginning of step 7, the guide assumes you are creating a user named mpiu
on all nodes, whose home directory is /mirror
. It doesn't, however, tell you how to do so.
authorized_keys
?ssh -vvv