Skip to content

Configure a personal data provider (NeuroHub)

Xuan Mai PHAM edited this page Sep 25, 2023 · 1 revision

The final option is to configure your personal data provider. To do so, please follow the following steps:

  1. Go to NeuroHub Storage

  2. Click on Storage Configuration

image

  1. Configuration of your private data provider

Complete the form as per:

  • HOSTNAME: this is the server’s name where you are getting the file from. In this example, I want to move a file from Compute Canada Beluga to the personal data provider hosted in CBRAIN
  • USERNAME of your Compute Canada Account
  • PATH: where the file is located in Beluga

image

  1. SSH KEY SET UP

Before saving your configuration, you will need to configure the SSH in your host storage. A public SSH key needs to be added to the authorized keys of the user on the host. Paste the SSH key bellow in a text file

  • If you use the nano or pico text editor, please make sure to use the -w option to prevent the editor from splitting the line of the key. The SSH key must all be in a single long line

  • Run a command to add it to the authorized keys file on the host, as for an example the below one: ssh-copy-id -f -i key.pub username@hostname

image

If you prefer, you can also directly create a .ssh directory on your host server, add the authorized key file in .ssh and copy the SSH key in that file without using the previous command line.

image

Now, you can save the configuration by clicking on SAVE CONFIGURATION

image

image

  1. TEST CONFIGURATION, AUTO REGISTER FILES and DECONFIGURE THIS STORAGE

To make sure your data provider has been successfully configured, you will have to test it before the files can be automatically registered. When you don't need it anymore, you will be able to deconfigure it as well.

image

  • TEST CONFIGURATION by clicking on the button

A message will pop up confirming the configuration is successful

  • AUTO REGISTER FILES by clicking on the button will confirm how many files have been registered

image

You can now go to your Projects, and you will see the new file(s) uploaded under Files with the private data provider name:

image

Clone this wiki locally