Connecting to MCMeSU with SSH
Accessing MCMeSU supercomputer requires credentials. These are sent by e-mail to users once the accounts are created.
For more information concerning opening an account, please consult the dedicated page.
MCMeSU supercomputer uses SSH (secure shell) protocol which allows a secure connection and reduces the risk of data corruption or fraudulent attack.
Introduction
SSH, which stands for Secure Shell, is a cryptographic network protocol that allows secure communication between two networked devices. It provides a secure way to access and manage remote servers and devices over an unsecured network, such as the internet. SSH is widely used by system administrators, developers, and anyone who needs secure access to remote systems.
How SSH Works
SSH works by establishing an encrypted connection between a client and a server. This encryption ensures that data transmitted between the client and server cannot be intercepted or tampered with by third parties.
Key Concepts
1. Client and Server
- Client: The device or computer from which you initiate an SSH connection.
- Server: The remote device or computer to which you connect using SSH.
2. Authentication
By default, SSH allows authentication using a username and password. When you connect to a server, you provide your username and password to authenticate yourself.
3. Encryption
SSH encrypts all data transmitted between the client and server, including login credentials and commands. This ensures that even if someone intercepts the data, they cannot read or decipher it without the encryption key.
Generating an SSH Key
To enhance security, it is recommended to use SSH keys for authentication instead of passwords. SSH keys provide a more secure and convenient way to authenticate.
What is an SSH Key?
An SSH key is a pair of cryptographic keys used for secure access. The pair consists of a public key and a private key.
- Public Key: This key is added to the remote server's authorized keys file.
- Private Key: This key remains on your local device and should be kept secure. It is used to prove your identity.
Generating an SSH Key on Linux / MacOS
-
Open your terminal.
-
Generate the SSH key pair by running the following command:
ssh-keygen -
When prompted to Enter a file in which to save the key press Enter to accept the default location.
-
Next, you will be asked to enter a passphrase. This is optional but recommended for added security. Enter a passphrase or leave it empty and press Enter.
Generating an SSH Key on Windows
You can generate SSH keys on Windows using either the command line or an application. The example provided here uses PuTTY, one of the most popular tools. Both methods require a user account with administrative privileges.
Generate SSH Key Pair in Windows via OpenSSH (ssh-keygen)
ssh-keygen is a command-line utility that generates, manages, and converts SSH authentication keys. Starting with Windows 10, the OpenSSH client is included by default, allowing you to use it directly from Command Prompt or PowerShell.
Step 1: Check if OpenSSH Client is Installed
First, verify if the OpenSSH client is already installed:
- Open Settings and select System from the left sidebar.
- Scroll down and click on Optional features.

- Look through the list to see if OpenSSH Client is listed. If it is, then OpenSSH is already installed, and you can proceed to the next section.
If OpenSSH Client is not listed under Added features, click the Add a feature button at the top to add it.

- Type OpenSSH in the search bar, check the box next to OpenSSH Client, and click Add to begin the installation.

Wait for the installation to complete, then proceed to the next step.
Step 2: Generate an SSH Key Pair with OpenSSH
Follow these steps to create an SSH key pair using OpenSSH:
-
Press the Windows key and type
cmd. Press Enter to open Command Prompt. -
In the command prompt, type the following command:
ssh-keygen -
You can accept the default file name for the keys, or provide a custom name for easier identification if you have multiple keys. Press Enter to use the default.
infoNote: If a file with the chosen name already exists, you will be prompted to overwrite it.
-
When prompted, enter a passphrase for added security or press Enter to skip this step. Confirm the passphrase if you chose to set one.
-
The key pair will be generated, and you will see the key fingerprint and a randomart image:

Generate SSH Key Pair in Windows via PuTTY
Before OpenSSH was included with Windows, PuTTY was the preferred tool for generating SSH keys. Here’s how to generate SSH keys with PuTTY.
The following steps will generate RSA keys, a widely used encryption method.
(Optional) PuTTY keygen also supports other algorithms: DSA, ECDSA, Ed25519, and SSH-1 (RSA). You can choose another algorithm under Parameters before generating the key pair.
-
Press the Windows key and type
puttygen. Press Enter to open the PuTTY Key Generator. -
In the PuTTY Key Generator window, click Generate. Move your mouse around in the gray area to generate randomness for the key.

-
Once the key is generated, save the key pair. Click Save public key and choose a location to save the public key file (example :
key.pub).Repeat the process for the private key, and consider setting a passphrase for additional security.

By default, the system saves the keys generated with PuTTY and OpenSSH to C:\Users\your_username\.ssh\id_rsa.
To locate the keys, open File Explorer and navigate to that folder.
You should find two files in this directory. The private key is stored in the id_rsa file, and the public key is labeled id_rsa.pub. These files together form your SSH key pair.
Note: The public key can be recognized by its .pub extension. You can use Notepad to view the contents of both the private and public keys.
Adding Your SSH Key to the Server
After generating the SSH key, you need to add the public key to the MCMeSU server:
Copy your public key to the remote server using the following command (replace your-username with your actual username):
ssh-copy-id your-username@login.mesu.sorbonne-universite.fr
Manually Adding the SSH Key (Linux/MacOS/Windows)
If ssh-copy-id is not available or you prefer to do it manually, you can copy the contents of your public key file and add it to the ~/.ssh/authorized_keys file on the remote server.
-
Open your public key file (id_rsa.pub) with a text editor and copy its contents.
-
Connect to the remote server:
ssh your-username@login.mesu.sorbonne-universite.fr
- Open the authorized_keys file with your favorite editor:
nano ~/.ssh/authorized_keys
- Paste your public key into the file and save it. Ensure that each key is on a new line.
Using SSH keys enhances security and simplifies the login process, making it more convenient and reliable.
If you have troubles with these operations, you can send the public key to SACADO by email
Connecting with SSH
There are differents methods to connect to the servers depending on the operating system used :
Linux / MacOS
Open a terminal
To connect from UNIX systems (Linux or MacOS), the preferred method is to use a CLI (Command Line Interface), also known as a Terminal or a Console.
For MacOs Users, the CLI is available from the finder under Applications -> Utilities -> Terminal, or from the launchpad by searching “Terminal”.
Linux systems will use different CLIs, usually called “Terminal”. They are located in the accessories panels menu.
Login with SSH
From the terminal, enter the following command by replacing username with the one sent by e-mail :
ssh your-username@login.mesu.sorbonne-universite.fr
You may see a warning at your first connection saying that you are trying to connect to an unknown host. You can confidently continue the login process by typing “Y”.
The CLI will then prompt you for your password. Type it and press ENTER to continue.
When typing your password, characters will not appear on your screen.
Once logged in, a welcome message should appear, providing you with various information about the system status, planned maintenance interventions or other important messages.
Windows
Install a SSH client
Windows Operating System does not include a built-in SSH tool.
You will therefore need to install one of the following ssh clients (Ubuntu WSL, Putty, MobaXTerm, CygWin, Kitty, ...), on your computer in order to login.
If you have already used such a software, please use any ssh client you are already familiar with.Otherwise, we recommend MobaXTerm which is more user-friendly.
Login with SSH
Open a terminal by clicking on “start local terminal“
Type SSH and press ENTER to establish a secure connection
Enter the following command by replacing username with the one sent by e-mail :
ssh your-username@login.mesu.sorbonne-universite.fr
You may see a warning at your first connection saying that you are trying to connect to an unknown host. You can confidently continue the login process by typing “Y”.
The CLI will then prompt you for your password. Type it and press ENTER to continue.
When typing your password characters will not appear on your screen.
Once logged in, a welcome message should appear, providing you with various information about the system status, planned maintenance interventions or other important messages.