Skip to main content

Connect to a HPC center within a service or process

From within EDITO, you can connect to a HPC center accessible though SSH, using a SSH public key provided by the EDITO Platform.

Updated over 3 weeks ago

Context


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).

Finalize the connection


Once your EDITO public key is registered to your HPC, 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.

📌 Note: in some services and processes (developed as part of the EDITO prokect or those dedicated to HPC), the step 2 (running /opt/loadHpcSshKeys.sh) is automatic.

What's next?


If you have any questions, problems, or suggestions, please feel free to contact us via chat using the widget available at the bottom right of the page.

Did this answer your question?