Connect to a HPC center withtin a service or process

From within EDITO, you can connect to a HPC center accessible though SSH (BSC MareNostrum 4&5, LUMI, etc.). To do that, the EDITO platform is providing you a SSH public key available in your account, under the HPC section. From there, you can copy that public key. You’ll then need to register it to your HPC center (each HPC center has a different procedure, so please check out the related documentation).

Once it has been done, each service or process available in the datalab will be able to access the HPC. The only thing you’ll need to do is to run the /opt/loadHpcSshKeys.sh script (available within your service/process) so that it creates the corresponding ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub.

Here is the steps you can try to verify that everything is working fine:

  1. Run a Jupyter Notebook service in the datalab
  2. Go into the created service, open a new terminal and load you ssh keypair by running /opt/loadHpcSshKeys.sh.
  3. Verify that the corresponding ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub keys has been created.
  4. Try to connect to the HPC using ssh: ssh <yourUsername>@<theHpcUri>

For security reasons, please remember to never share your private key.