Connecting to the HPC Clusters (SSH Guide)¶
Once you have registered for your central identity and your PI has added you to an active Allocation in the ColdFront Portal, you are ready to connect to the HPC clusters.
Prerequisite Check:
- Allocation Status: If you receive an "Access Denied" error, check that your ColdFront allocation is approved and active.
- SSH Key Authentication: Access to the HPC clusters is strictly via SSH Keys. Password authentication is disabled for SSH connections. You must generate an SSH key pair and register your public key before connecting.
Generating SSH keys¶
In order to generate a SSH key pair follow the below steps:
Linux/Mac¶
Create a public and private key pair using the following command:
ssh-keygen
You will be prompted for a filename for saving the private key. You should press Enter to use the default name: /home/username/.ssh/id_rsa You will be prompted for a passphrase to protect your private key which you will also confirm. ALWAYS use such a passphrase to protect your private key. ssh-keygen will then create a private and public key. The public key will have a .pub extension (e.g., id_rsa.pub)
Windows¶
Using PuTTYgen¶
- Download the PuTTYgen tool here
- Run the tool executable (puttygen.exe)
- Click Generate
- Move your mouse over the blank area
- Add a passphrase to your key in the Key passphrase and Confirm passphrase boxes.
- Save your key pair by clicking the Save public key and Save private key buttons. The private key will have a .ppk extension (e.g. private_key.ppk)
Using OpenSSH¶
First check if the OpenSSH client is installed.
- Open the Settings panel, then click Apps.
- Under the Apps and Features heading, click Optional Features.
- Scroll down the list to see if OpenSSH Client is listed.
- If it's not, click the plus-sign next to Add a feature.
- Scroll through the list to find and select OpenSSH Client.
- Finally, click Install.
Then open the OpenSSH client and proceed with the key generation:
- Press the Windows key type cmd.
- Under Best Match, right-click Command Prompt. Click Run as Administrator.
- If prompted, click Yes in the Do you want to allow this app to make changes to your device? pop-up.
- In the command prompt type:
ssh-keygen - By default, the system will save the keys to C:\Users\your_username.ssh\id_rsa. You can use the default name, or you can choose more descriptive names. This can help distinguish between keys, if you are using multiple key pairs. To stick to the default option, press Enter. Note: If a file with the same name already exists, you will be asked whether you want to overwrite the file.
- You'll be asked to enter a passphrase. Enter a safe passphrase.
- The system will generate the key pair, and display the key fingerprint and a randomart image.
- Open your file browser.
- Navigate to C:\Users\your_username.ssh.
- You should see two files. The identification is saved in the id_rsa file and the public key is labeled id_rsa.pub. This is your SSH key pair.
Note: Normally, the public key is identified with the .pub extension. You can use Notepad to see the contents of both the private and public key.
The HPC Login Nodes¶
The table below lists the login hostnames for our systems.
| System | Hostname | Status |
|---|---|---|
| Aphroditi | front01.hpcf.cyi.ac.cy |
Primary |
Note: The hostname front01.hpcf.cyi.ac.cy is the current access point for Aphroditi, but it may be updated to aphroditi.hpcf.cyi.ac.cy in the future. Documentation will be updated when this change occurs.
Important: Login nodes are strictly for compiling code, submitting jobs to the Slurm scheduler, and managing files. Do not run heavy computational tasks on the login nodes, as this disrupts the system for all users.
Connecting to the Clusters¶
Choose the method that works best for your workflow.
Option 1: Native SSH (Terminal)¶
If you prefer a terminal, use the standard SSH client installed on your system.
Linux/Mac¶
If your private key is stored in your .ssh folder in your home directory:
$ssh username@hostname
If the key is stored in another directory:
$ssh -i /key_path/id_rsa username@hostname
If you encounter a problem with your key permissions, go to the directory where the key is stored and do the following:
$chmod 600 .ssh/id_rsa
Windows¶
You can use the native OpenSSH client (available in PowerShell/Command Prompt) or PuTTY (legacy).
Using OpenSSH:
- Open PowerShell or Command Prompt.
- Ensure your key is in
C:\Users\your_username\.ssh\. - Type:
ssh username@hostname
Using PuTTY:
- Download PuTTY.
- Load your private key in the configuration.
- Enter your login information in the Host Name box and click Open.
Option 2: VS Code (Recommended)¶
VS Code allows you to edit files and run terminal commands directly on the HPC clusters.
- Download and install VS Code.
- Go to the Extensions view (click the square icon on the left sidebar).
-
Search for and install the "Remote - SSH" extension by Microsoft (as shown above).

-
Click the green "><" icon in the bottom-left corner of the window.
- Select "Connect to Host...".
- Enter
username@front01.hpcf.cyi.ac.cy(for Aphroditi) - VS Code will connect, and you can open folders on the cluster as if they were local.
Option 3: Legacy/Alternative: PuTTY (Windows)¶
If you are unable to use OpenSSH or VS Code, you can use PuTTY.
- Download PuTTY.
- Run the executable (putty.exe).
-
Browse for and select your private key file.

-
Enter login information in the Host Name box (e.g. username@hostname) and click Open.

Simplifying SSH with a Config File¶
For a smoother experience in both your terminal and VS Code, you can create an SSH configuration file on your local machine (~/.ssh/config on Linux/Mac, or C:\Users\your_username\.ssh\config on Windows).
Add the following to your config file:
# Global settings for HPC connections
ServerAliveInterval 30
ForwardAgent yes
IdentityFile ~/.ssh/id_rsa
Host aphroditi
HostName front01.hpcf.cyi.ac.cy
User your_username
Benefits of this setup:
- Keep connections alive:
ServerAliveInterval 30prevents your connection from dropping due to inactivity. - Agent Forwarding:
ForwardAgent yesallows you to use your local SSH keys on the login node. - Shortcuts: You can now connect to Aphroditi by simply running
ssh aphroditiin your terminal, or by typingaphroditiin the VS Code "Connect to Host" box.
Managing SSH Config in VS Code¶
You can also manage this file directly inside VS Code:
- Click the green "><" icon in the bottom-left corner.
- Select "Configure SSH Host...".
- Select your
~/.ssh/configfile from the list. - Add the host entry above directly in the editor and save the file.