andrew@master:/ $ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/andrew/.ssh/id_rsa):
Created directory '/home/andrew/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/andrew/.ssh/id_rsa
Your public key has been saved in /home/andrew/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:HRw29BTB7P4+ZpYTv/4cvTqNc3jPqz305lm0h7twtos andrew@master
The key's randomart image is:
+---[RSA 3072]----+
| .=o+o |
| o =o |
| o.. |
| . .. |
| S .. .|
| . .+o|
| ..O*=|
| XXXX|
| EB##%|
+----[SHA256]-----+
Install pip
Pip is required to install Python libraries.
sudo apt install pip
You will probably receive a message referring to python-pip or python3-pip. Ignore these as the OS knows what it's doing.
Once pip is installed, mpi4py can be installed.
Install mpi4py
sudo pip install mpi4py
This will take a while. The action:
Building wheel for mpi4py (PEP 517)
will take several minutes to run during which time there will be no visible activity. The spinning "| / - \ |" sequence will stop as well. Just wait.
Done
Now it's time to configure the individual machines into a cluster.