Prerequisites
Step 1: Create an ssh key#
To be able to graphically connect to a node, you need to create a ssh key first, without passphrase to avoid having to type it each time. The following procedure has to be done **once and for all** only the first time you want to use a graphic tool.
On the machine you want to log from, here maestro.pasteur.fr, do:
Code Block (bash)
[login@maestro ~]$ ssh-keygen
If you don't already have a ssh keys for other machines,
- keep the default name of the files that will contain the private and public keys:
~/.ssh/id_rsaand~/.ssh/id_rsa.pubrespectively. - then press
Enteruntil you get the prompt again (no passphrase).
Check with command
Code Block (bash)
[login@maestro ~]$ ls -l ~/.ssh
that the newly created files have permissions
Code Block (bash)
-rw-------
Given that your home is accessible on every node of the cluster, you just have to copy and paste the content of the newly created .pub file at the end of the file ~/.ssh/authorized_keys
If you have kept the default name, the command should look like
Code Block (bash)
[login@maestro ~]$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Check permissions of the authorized_keys file with command:
Code Block (bash)
[login@maestro ~]$ ls -l ~/.ssh/authorized_keys
It should be
Code Block (bash)
-rw------
If it's not the case, change permissions using chmod command:
Code Block (bash)
[login@maestro ~]$ chmod 600 ~/.ssh/authorized_keys
Please, use command
Code Block (bash)
[login@maestro ~]$ ls -ld ~/.ssh
check that your .ssh directory also has permissions
Code Block (bash)
drwx--S---
If not, change them by typing:
Code Block (bash)
[login@maestro ~]$ chmod 700 ~/.ssh
Step 2: the way to connect depends on where your computer is#
maestro.pasteur.fr is NOT accessible from outside.
- If you are outside the Pasteur Paris campus:
- first use the VPN (links for download available on the page) so that your computer will be put in the dedicated Pasteur subnetwork,
- then connect to
maestro.pasteur.fras explained in Step 3 - If you are inside the Pasteur Paris campus, connect directly to
maestro.pasteur.fras explained in Step 3
Reminder: X-forwarding (graphical display) is blocked by the ssh.pasteur.fr gateway.
Step 3: check/install a X server on your machine and log on maestro.pasteur.fr#
Mac OS X and Linux users#
Prerequisite for Mac OS X user#
- ensure that XQuartz is installed, up-to-date and that you have closed the Mac session and reopened one at least once after installation/update
- if your Mac hasn't been "pasteurized", prefer
XQuartz TerminaltoApple Terminal.
Connection through ssh#
Then connect to the submit node maestro.pasteur.fr :
- open a terminal window and type
- if you are on a Mac
Code Block (bash)
ssh -Y <yourlogin>@maestro.pasteur.fr
- if you are on a Linux machine
Code Block (bash)
ssh -X <yourlogin>@maestro.pasteur.fr
- if the following lines appear, type
yes
Code Block (bash)
hostname:~ login$ ssh -Y login@maestro.pasteur.fr
The authenticity of host 'maestro.pasteur.fr (192.168.148.50)' can't be established.
ECDSA key fingerprint is SHA256:dL7fa6chcQzbOcC/64vKHLMK9z4J8IcP/DHPZWWdsCw.
Are you sure you want to continue connecting (yes/no)?
- type your password
Windows users#
PuTTY users:
- check
Enable X11 forwardingbox underConnections-> SSH -> X11in theCategoryPanel - install an X Server such as
Xmingto have the graphical display -
once done
-
- click on PuTTY icon
- fill the
Host Namefield withmaestro.pasteur.frand port with22 - ensure that
SSHis selected forConnection Type - click
Open - type your login
- type your password
Non PuTTY users:
- install a combined X Server and ssh client such as MobaXTerm
- proceed in a terminal window like the Max OS X and Linux users (see above)
Step 4: submit your first graphical jobs with --x11 option in your srun#
To test that the graphic forwarding works, once connected to maestro with X11 Forwarding enabled, you can try to submit xeyes , a pair of eyes that seems to follow the mouse moves. For that, don't forget the --x11 option to your srun command
Code Block (bash)
login@maestro ~ $ srun --x11 xeyes
If a window with such pair of eyes appears, it works as expected.
Note that:
- If you forget the
--x11, you will have an error message of the type
Code Block (bash)
Error: Can't open display: localhost:18.0
srun: error: maestro-<number>: task 0: Exited with exit code 1
- if you forget to connect with graphic forwarding (through ssh -X from a Linux or ssh -Y from a Mac), you will have this kind of error message
Code Block (bash)
srun: error: No DISPLAY variable set, cannot setup x11 forwarding.
Now check with a real program.
For example, let's say that you want to use CLC Genomics WB. First you have to load it in your environment:
Code Block (bash)
login@maestro ~ $ module av clc
--------------------------------- /opt/gensoft/modules -------------------------------
clc-assembly-cell/5.1.0(default) CLCGenomicsWorkbench/11.0.1 CLCGenomicsWorkbench/20.0.4(default)
login@maestro ~ $ module load CLCGenomicsWorkbench/20.0.4
before submitting them with --x11 option (and in the correct partition to get a license):
Code Block (bash)
login@maestro ~ $ srun --x11 -p clcgwb clcgenomicswb20
|