How to create HPC Cluster with Slurm scheduler on Google Cloud Platform
Generating SSH keys for specific accounts (from Linux machine)
- Login to the Linux machine console.
- Run the following command to generate the SSH key pair:
- ssh-keygen -t rsa -f ~/.ssh/[KEY_FILENAME] -C [USERNAME]
- Note 1: Replace KEY_FILENAME with the actual private key file name
- Note 2: Replace USERNAME with the user who will use this SSH key to login
- Change the permissions of the SSH private key using the command below:
- chmod 400 ~/.ssh/[KEY_FILENAME]
- Note: Replace KEY_FILENAME with the actual private key file name
Generating SSH keys for specific accounts (from Windows machine)
- Download puttygen.exe from:
- Run the puttygen.exe
- Click Generate and follow the on-screen instructions to generate a new key.
- Note: Make sure you create keys with at least 2048 bits
- In the Key comment section, replace the existing text with the username who will use this key to login to the VM instance.
- Click Save private key to write your private key to a file with a .ppk extension.
- Click Save public key to write your public key to a file for later use.