Connecting via PuTTY (Windows)

PuTTY is a free SSH client for Windows. This guide will show you how to convert your private SSH key to PuTTY format and connect to the server.

Step 1: Download and Install PuTTY

Download PuTTY from the official website:
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Download the MSI installer package for Windows and run it to install PuTTY and its utilities, including PuTTYgen which we'll need for key conversion.

Step 2: Convert Your SSH Key to PPK Format

Your SSH key file as well as your username on the cluster have the form
sca50xxx

Follow these steps to convert the key file from SSH format to PuTTY format:
  1. Open PuTTYgen (installed with PuTTY)
  2. Click Load and browse to your SSH key file
    Show screenshot ▶
  3. In the file browser, change the file filter from PuTTY Private Key Files (*.ppk) to All Files (*.*) to see your key file
    Show screenshot ▶
  4. Select your key file and click Open . You should see a success message. Click Ok
  5. Under Parameters, choose the EdDSA option for the encryption.
  6. Click Save private key
    Show screenshot ▶
    If prompted about saving without a passphrase, click Yes (unless you want to add a passphrase for extra security)
  7. Save the file with a .ppk extension, for example:       sca50xxx.ppk
    to your computer. The default path for SSH Keys is: C:\Users\<Your Windows username>\.ssh\
    Therefore, we recommend to create and use this folder.

Step 3: Configure PuTTY Connection

  1. Open PuTTY
  2. In the Host Name field, enter your username, which is identical to the SSH key file name: sca50xxx. Append @training.hlrs.de, so the field reads: sca50xxx@training.hlrs.de
  3. Make sure Port is set to 22
  4. Connection type should be SSH
    Show screenshot ▶
  5. In the left panel, navigate to: Connection → SSH → Auth → Credentials
  6. Click Browse next to Private key file for authentication and select your .ppk file that you created in Step 2
    Show screenshot ▶

Step 4 (optional): Setup port forwarding

In some courses, you will run your exercises inside a jupyter notebook running on the trainings cluster. Before you can launch the notebook, you need to set up port forwarding in PuTTY. Follow these steps:
  1. In the left panel, navigate to: Connection → SSH → Tunnels
  2. Move the radio button to Dynamic.
  3. In the Source port field, enter the port number: 8080
  4. Click on Add. The option D8080 should now appear in the Forwarded ports list.
  5. Show screenshot ▶

Step 5 (optional): Setup X11 forwarding

If you want to run graphical applications on the remote server, you need to set up X11 forwarding in PuTTY. Follow these steps:
  1. In the left panel, navigate to: Connection → SSH → X11
  2. Check the box for Enable X11 forwarding to enable X11 forwarding
  3. Show screenshot ▶

  4. Save your config first, see step 6! Afterwards, make sure that you have an X server running on your Windows machine before you open the connection. For the X-servers, you can use VcXsrv or Xming .

Step 6: Save Your Session

  1. Go back to the Session category (top of the left panel)
  2. In the Saved Sessions field, enter a descriptive <alias> .
    We recommend a short version of your course name, for example cfd for the course Computational Fluid Dynamics.
  3. Click Save
    Show screenshot ▶

Step 7: Connect to the Server

  1. Inside PuTTY, select your previously saved session and click Open at the bottom of the window to initiate the connection
  2. If this is your first time connecting, you'll see a security alert about the server's host key:

    The host key is not cached for this server:
    training.hlrs.de (port 22)
    The server's ssh-ed25519 key fingerprint is:
    ssh-ed25519 255 SHA256:19E0sAY21G6+o4nEkaqYv6qFSgOzMdf3uEzh2mBZKhI
    [...]
  3. Click either Accept to add the key to PuTTY's cache or Connect Once
  4. You should now be connected and see the command prompt:
    students cl7fr1 1$
  5. Type exit to disconnect or simply close the window when you're done.
  6. After successfully connecting to the cluster, you can start submitting compute jobs. To see how, follow the guide:
    Getting started on a compute cluster

Step 8 (optional): Copying data with WinSCP

We recommend installing WinSCP to copy files between your PC and the cluster. Install it with your preferred options. Upon starting, it should prompt you to set up a New Site . If it didn't, simply click on New Tab. Then, click on Tools → Import Sites.... Your PuTTY connection should already be listed. Click OK , then Login. It will mount your home directory on the trainings cluster in WinSCP's file manager, allowing you to easily transfer files via drag-and-drop.
Show screenshot ▶

To switch to another directory on the cluster, proceed as follows:

  1. Double-click the current path above the right file panel (cluster).
  2. In the Open directory dialog, enter the desired path. It may differ from the one shown in the screenshot.
  3. (Optional) Click Add , to save the path under Site bookmarks for later use.
  4. Click OK , to open the directory.
    Show screenshot ▶