Cluster connection

Prerequisite

Connecting imposes normal workstation conditions on the workstation you are using. Namely: a station with an up-to-date operating system, up-to-date and “legal” software, a local session with a robust login and password as well as a systematic locking or disconnection of your session for any absence, even of short duration.

OpenOnDemand

OpenOnDemand allows to connect to “MatriCS 2.0” : OpenOnDemand link to connect to the cluster.

Graphic session with OpenOnDemand

  1. Login : login / password on OpenOnDemand
  2. Go to Visu Desktop of Interactive Apps menu
  3. You can change session duration and clic on Launch
  4. When your “job/task” is “running” state, clic on Launch Visu Desktop

Accès via ssh

Avec un terminal sous Linux ou avec Mac OS X Applications->Utilitaires->Terminal de MacOS X.
Sous Windows dans un terminal DOS (cmd) moyennant d’avoir installé le “client ssh” (Ajout ou supprimer des programmes -> Fonctionnalités facultatives -> Client OpenSSH).
La connexion se fait par la commande suivante :
ssh mylogin@login.matrics.u-picardie.fr

OpenOnDemand

Access via ssh

With a terminal under Linux or with Mac OS X Applications->Utilities->Terminal of MacOS X.
Under Windows in a DOS terminal (cmd) provided you have installed the “ssh client” (Addition or remove programs -> Optional features -> OpenSSH client).
The connection is made by the following command:
ssh mylogin@login.matrics.u- picardie.fr

Tip: Ssh connection without having to type his password from  password

The goal is to be able to connect to the MatriCS computing platform without having to type in your password by creating an ssh key that you then add to your account.
Warning: This facility makes it even more imperative the prerequisite mentioned above.

Step 1: Create an ssh key on your machine

  • On your local machine, type the following command:
    ssh-keygen -t rsa
    -> For each question, hit enter. In your .ssh directory, 2 files have been created, namely id_rsa.pub and id_rsa. For the next step, we will use the id_rsa.pub file. Notice the ‘.’ in directory directory name .ssh.

Step 2: Adding the key to your MatriCS account

  • Connect via ssh to the MatriCS calculation platform.
  • Go to the .ssh directory (Don’t forget the . dot in front of ssh): cd ~/.ssh li>
  • Edit the file authorized_keys. For example, nano authorized_keys
  • Copy the public key, i.e. the content of the id_rsa.pub file that was generated locally on your machine (Attention, be sure to take the content of the file with the extension .pub and when copying, be careful not to add any character.)
  • Paste / Add this key in the authorized_keys file (MatriCS side)
  • Save the authorized_keys file (For example , doing Ctrl+O with nano)

Step 3: Verification of the addition

  • Disconnect from MatriCS via exit.
  • Remake an ssh connection (ssh mylogin@login.matrics.u-picardie.fr). If everything works fine, you should log in without having to enter your password.