The instructions provided in this tutorial are aimed at establishing a standard SSH connection to a server within the user's network. This setup assumes that you have access to a remote computing server with SSH enabled, allowing you to securely connect and run the necessary software.
SSH is required to access the remote server resource. If you haven't installed ssh
, follow one of these instructions to install ssh
:
Linux
- Open the Terminal
- Type command:
sudo apt-get install openssh-server
- Enable the ssh service:
sudo systemctl enable ssh
- Start the ssh service:
sudo systemctl start ssh
MacOS
Download and install ***macFUSE*** here: https://osxfuse.github.io/Windows
-
Open Settings, select Apps, then select Optional Features.
-
Scan the list to see if the OpenSSH is already installed. If not, at the top of the page, select Add a feature, then:
- Find OpenSSH Client, then select Install
- Find OpenSSH Server, then select Install
-
Once setup completes, return to Apps and Optional Features and confirm OpenSSH is listed.
-
Open the Services desktop app. (Select Start, type services.msc in the search box, and then select the Service app or press ENTER).
-
In the details pane, double-click OpenSSH SSH Server.
-
On the General tab, from the Startup type drop-down menu, select Automatic.
-
To start the service, select Start.
Adapted from: https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=gui
This step create the key for server access that does require password.
Linux and MacOS
- Open Terminal
mkdir -p /.ssh && chmod 700 ~/.ssh && cd ~/.ssh
- Paste the text below, replacing the email used in the example with your email:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
. Click ENTER until finishing. - Check if successful by
ls ~\.ssh
. The results should contain these two files:id_rsa
andid_rsa.pub
.
Windows
- Open Terminal as Administrator following this instruction: https://learn.microsoft.com/en-us/windows/terminal/faq
mkdir -p /.ssh && chmod 700 ~/.ssh && cd ~/.ssh
- Paste the text below, replacing the email used in the example with your email:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
. Click ENTER until finishing. - Check if successful by
ls ~/.ssh
. The results should contain these two files:id_rsa
andid_rsa.pub
.
This step allows you to alias the server address for easy access.
-
Open Terminal (On Windows, follow this instruction to run the Terminal as Administrator: https://learn.microsoft.com/en-us/windows/terminal/faq)
-
cd ~/.ssh
-
touch config & chmod 600 ~/.ssh/config
-
nano config
then enter these contents in the file config:GSSAPIAuthentication no ServerAliveInterval 120 TCPKeepAlive no Host <hostname> HostName <host_address> User <your_username> ForwardAgent yes ProxyCommand none IdentityFile ~/.ssh/id_rsa
Replace the contend inside
<>
with your own information. -
Ctrl + x → y
- Copy the content in
~/.ssh/id_rsa.pub
- SSH to your server:
ssh <hostname>
, enter the required password. nano ~/.ssh/authorized_keys
→ paste the content ofid_rsa.pub
as new line- Ctrl + x → y
After this step, you can access to the server without entering password.
- SSH to your server:
ssh <hostname>
, enter the password (if required). - Download the MouseCHD Apptainer:
wget https://zenodo.org/records/13928753/files/mousechd.sif
On the remote server, locate the shared folder at $HOME/DATA
.
- If the shared folder is remote, mount your shared folder at
$HOME/DATA
- If your shared folder is on the server, use
mkdir <shared_folder_name> && ln -sf <path/to/shared/folder>/* ~/DATA/<shared_folder_name>
Congratulations! You've successfully completed the setup to run the plugin on the remote server. Here are some key parameters that require your attention during plugin input:
![]() |
Servername: it is the hostname you placed in your config file. |
Apptainer execution command: the command to run apptainer. Default: apptainer exec -B /pasteur --nv mousechd.sif mousechd. -B to mount volume if necessary, --nv to run with GPU. | |
Slurm: your server uses Slurm Workload Manager " to request the resource or not. If yes, what is the command? Default: srun -J 'mousechd' -p gpu --qos=gpu --gres=gpu:1 | |
Load modules: Do you need to load some modules to run the program? If yes, specify. Default: module load apptainer |
These paremeters will automatically saved for future use