To access HPC clusters (Baobab, Yggdrasil, Bamboo), you must use a modern SSH key, ideally ED25519, protected by a passphrase.
Requirements
- Use a modern key type (ED25519 recommended)
- A passphrase is mandatory
- The public key must be added to your UNIGE user profile

1. Linux / macOS (native tools)
Generate an SSH key
Open a terminal and run:
ssh-keygen -t ed25519 -C "your.email@unige.ch"
Steps
- Press Enter to accept the default path
- Enter a passphrase and confirm it
Generated files
* ~/.ssh/id_ed25519 → private key (keep it secret)
* ~/.ssh/id_ed25519.pub → public key
2. Windows (PuTTY / Pageant / PuTTYgen)
Install tools
Download here Putty, PuttyGen and Pageant:
Download PuTTY tools
Generate a key with PuTTYgen
Steps
- Select Ed25519 (recommended modern format)
- Click Generate and move the mouse
- Enter a passphrase and confirm it
- Click Save private key (file will be .ppk)
- Copy the public key from the top field
Copy the entire line (starting with ssh-ed25519)
Important: key format
- The private key generated by PuTTYgen is in PPK format
- This format is specific to PuTTY / Pageant
If you need to use the key with other tools (ssh, scp, rsync, Linux/macOS):
- In PuTTYgen: Conversions → Export OpenSSH key
3. Retrieve your public key
Linux / macOS
Run:
cat ~/.ssh/id_ed25519.pub
Windows
Copy the public key directly from PuTTYgen.
Make sure to copy the full line
4. Add your public key to your UNIGE profile
UNIGE account
External users
5. Use an SSH agent (strongly recommended)
Without an agent, you will need to enter your passphrase every time.
Using an SSH agent allows you to authenticate once per session.

Linux / macOS
Run:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
Windows (Pageant)
- Launch Pageant
- Load your .ppk key
- Enter your passphrase once per session
PuTTY will automatically use the key via the agent.
Connection issues
See the troubleshooting guide:
SSH login troubleshooting – key mismatch
You can also ask questions on the
HPC community forum
6. Test your connection
Linux, Mac, ssh
ssh username@cluster.unige.ch
Putty
If you are using Putty without an agent, you need to add your key to the session parameter in putty prior to connect.
Summary
- Generate a modern SSH key (ED25519 recommended) with passphrase
- Retrieve the public key
- Add it to your UNIGE profile
- Use an SSH agent for convenience

