Connecting to Dardel¶
For this course we recommend using ThinLinc, but if you have your own installation of another SSH client that you prefer, you are welcome to use that. We will be using the command line only, so an SSH client like PuTTY would also work, as would connecting from a Linux/macOS terminal with SSH.
Setup, Dardel¶
In order to use Dardel, you need to first setup SSH keys (or kerberos - see here if you prefer that: https://support.pdc.kth.se/doc/login/kerberos_login/).
Here we will cover how to set up SSH keys for Dardel.
Create an SSH key pair
- Open a terminal.
- Create an
.sshdirectory for the key pair if you do not have one. It should be in your home directory:mkdir $HOME/.ssh - Make sure the new directory has the right access permissions:
chmod 700 $HOME/.ssh - Generate the SSH key pair by typing this in the terminal:
- You should set a password when asked for it. Note that you will have to enter this every time you use it, unless you load it in an agent. If you do not want to use a passphrase, just press “Enter” when asked for the passphrase.
- An SSH key pair will be generated and placed in the
.sshdirectory.
- Open a Terminal window. Do one of:
- Open Finder, select “Applications” -> “the Utilities folder”. Double-click “Terminal” within there.
- Open “Launchpad”. Search for “Terminal” and double click on the “Terminal” application.
- Create an
.sshdirectory for the key pair if you do not have one. It should be in your home directory:cdandmkdir .ssh - Make sure the new directory has the right access permissions:
chmod 700 .ssh - Generate the SSH key pair by typing this in the terminal:
- You should set a password when asked for it. Note that you will have to enter this every time you use it, unless you load it in an agent. If you do not want to use a passphrase, just press “Enter” when asked for the passphrase.
- An SSH key pair will be generated and placed in the
.sshdirectory.
- Please follow these instructions: https://support.pdc.kth.se/doc/login/windows_login/#install-and-configure-kerberos-and-ssh-for-windows
PDC authentication portal & adding a new key
- Once you have successfully produced a working SSH key pair, use your browser to open the PDC login portal: https://loginportal.pdc.kth.se/.
- You will see a start page with a link to the Swedish User and Project Repository (SUPR). Click on the SUPR link.
- Login to SUPR if you are not already logged in.
- NOTE: SUPR does not use the same password as the one you received from PDC. If you have not previously set up a SUPR password, you can log in with SWAMID. If you are using TOTP, do so as well.
- Click on the blue “Prove My Identity to PDC” button.
- You should now be back in the PDC login portal. Your personal information should be displayed.
- Now pick “Add new key”
- Upload or copy and paste the public part of your SSH key pair (usually with extension .pub).
- If you do not see the
.sshdirectory try toggling the visibility of hidden/dot files with e.g. pressingCtrl + hin Linux orshift + cmd + ‘.’for MacOS. - It is a good idea to pick a label (“Key name”) so you can easier remember where the key is for.
- The IP address from where you are connected as seen from the portal will already be shown in the address field as a default. A significant bit mask of between /24 and /32 or a domain-name based range can be added to the IP address.
- For “Expires” (expiration date), the maximum allowed value is shown. You can change it if you want to.
- Press “Save”.
- You will be back on the page with the personal info. You can add more IP addresses where you may connect from.
- You are now ready to use the SSH keys to login to Dardel!
- If you do not see the
Logging in¶
ThinLinc¶
- Download the ThinLinc client from https://www.cendio.com/thinlinc/download and install it if you are going to use that.
Logging in¶
- Start the client. Enter the name of the server:
dardel-vnc.pdc.kth.seand then enter your own PDC username. - Go to “Options” -> “Security”. Check that authentication method is set to “Public key”. It should suggest the correct key, but if it does not, browse for it. Remember to check “Show hidden files” so you can find the
.sshdirectory. Pick your public key. - Go to “Options” -> “Screen” and uncheck “Full screen mode”.
- Click “Connect”. Enter your SSH key pair password for PDC if you set one.
Regular SSH client¶
Logging in to Dardel with SSH keys
- In an SSH terminal (Linux, macOS), type:
ssh -i ~/.ssh/id-ed25519-pdc <Your-PDC-username>@dardel.pdc.kth.se- You may also try
ssh dardel.pdc.kth.seorssh <username>@dardel.pdc.kth.sedepending on whether you have the same username or not as at PDC.
- You may also try
- In windows, depending on the SSH client, pick SSH key pair as authentication method. Then login with
dardel.pdc.kth.seas Host name. For PuTTY it may look like this:
- Whether Windows, Linux, or macOS, you will likely get a qiestions about the server’s host key not being in the registry. Just pick “Accept”.
- Information about connecting, SSH key pairs, and setting up access at PDC:
- https://support.pdc.kth.se/doc/basics/quickstart/
- https://support.pdc.kth.se/doc/login/ssh_login/
- https://support.pdc.kth.se/doc/login/ssh_keys/
- https://support.pdc.kth.se/doc/login/windows_login/#install-and-configure-kerberos-and-ssh-for-windows
- https://support.pdc.kth.se/doc/login/interactive_hpc/
Setting up Git¶
Git is already installed on Dardel, but you need to set your name and email globals unless you have already done this at some earlier time.
Warning
In the below, do not copy the first $ as it is a representation of the prompt.
- Open a terminal. In ThinLinc: Go to the menu at the top. Click “Applications” → “System Tools” → “Terminal”.
- Set your global name (change “Your Name”):
$ git config --global user.name "Your Name" - Set your global email (change the example):
$ git config --global user.email "name@example.com"
You may also want to set your editor. We recommend nano, but other options are vim and emacs (or notepad if you are on a Windows system).
$ git config --global core.editor nano
This is how it looked for me, when loggen in on the Dardel login node (I also tested the version of Git):
bbrydsoe@login1:~> git --version
git version 2.35.3
bbrydsoe@login1:~> git config --global user.name "Birgitte Brydsö"
bbrydsoe@login1:~> git config --global user.email "bbrydsoe@hpc2n.umu.se"
bbrydsoe@login1:~> git config --global core.editor nano
Testing your configuration¶
Create an example folder and cd into that, then create a file test.txt:
Now initialize a repository and add the new file:
Now commit the change. The editor which you configured earlier should open. Add an example commit message:
This looked like this for me:

Now let us look at the log:
When you do git log, you should see something like:
commit a5e90d6237ba4a240bd31e9b9fb3dfa7e4c35ed3 (HEAD -> master)
Author: Birgitte Brydsö <bbrydsoe@hpc2n.umu.se>
Date: Mon Oct 27 14:39:31 2025 +0100
Just adding a test file
but with name, email and commit message different.
If that is the case, your Git should be configured correctly.
Download the course materials¶
For the individual hands-on part of the course, we have created some course materials which you will download from either the course website, the course GitHub, or the “important information” page.
- Course website: https://www.hpc2n.umu.se/events/courses/2025/git
- Course GitHub: https://github.com/hpc2n/course-intro-git
- Click the green button labeled “Code” for links to clone or download the materials.
- Either do 1. CLONE or 2. DOWNLOAD, not both!
- CLONE: Change to the directory where you wish to have the course material and clone with ‘git clone’ and the url:
git clone https://github.com/hpc2n/course-intro-git.git- You get the directory:
course-intro-git
- DOWNLOAD Zipfile: Please go to the terminal window where you have downloaded and set up Git. Change the directory to wherever you wish to have the course material.
- Download the Zipfile and move it there. Can be done directly from the terminal with
wget https://github.com/hpc2n/course-intro-git/archive/refs/heads/main.zip) - Unpack with
unzip main.zip. - You will get a directory called
course-intro-git-main.
- Download the Zipfile and move it there. Can be done directly from the terminal with
- CLONE: Change to the directory where you wish to have the course material and clone with ‘git clone’ and the url:
GitHub and SSH keys¶
- You need to create an account on GitHub for the course
- You also need to create SSH keys on Dardel and install these on GitHub (in addition to the ones you created on your own machine in order to connect to Dardel)
- We will go through this in a general way which should work regardless of system you are using
- We will go through it before the Teamwork session. The material for creating and setting up SSH keys are here: https://hpc2n.github.io/course-intro-git/setup/#create__a__new__ssh__key__for__github