SSH Keys are no longer supported in the computer labs. You should use SSH-Certs as explained here.

The documentation below is only kept as reference for how it was used before and will be removed in the near future.

There are some alternative descriptions on how to use the computer lab systems - if you don't find how to do so using the explanation below, you might find some additional explanation here or here.

One time initial SSH key setup on your own machine(s) for st.cs.kuleuven.be:

If you want to use the departmental jumphost st.cs.kuleuven.be you need to:

  • first and just once in your career (unless you want to start using a new key): create your SSH keys as described below

  • then and just once but on each computer from where you want to connect to the student computer lab systems (e.g. once on your laptop and once on your desktop at home): download the private key id_rsa that you created in the first step to your local machine:

    • on Apple MacOS and Linux:
      • download id_rsa to your local .ssh folder in your home folder and protect it with:
                chmod 0700 ~/.ssh
                chmod 0400 ~/.ssh/id_rsa
        
      • in case you already have your own id_rsa in that folder, you are free to give the downloaded file a different name, but then you should use the ~/.ssh/config file to configure to use that key-file for connections to the jumphost and the computer lab systems - see the ssh manual on your machine for more details - most probably this is something like:
                Host st.cs.kuleuven.be *.student.cs.kuleuven.be
                        IdentityFile /path/to/your/private/key
        
        please do note that this is not necessary if you download your key as id_rsa into your .ssh directory!
    • on Microsoft Windows:
      • download id_rsa to some appropriate local folder and protect it so no other users of your system can have access to that file
      • configure to use this (private) key file:

SSH Keys

Before you can access the Computer Lab machines with SSH via the jumphost st.cs.kuleuven.be, you need to generate and install appropriate SSH keys via https://www.cs.kuleuven.be/restricted/ssh/.

These keys are not only used to login, but are also used to access repositories on the departmental repository service, so you might need to create them anyway.

After logging in on this site, you must give a passphrase to protect your keys with. It's best to make this as long and as difficult as possible ... definitely more than 8 characters and containing capital letters, small letters, numbers and punctiation characters.

The generated keys will not be installed in your home directory in the Computer Lab directly, but will be picked up afterwards (currently several times per day on working days) and copied where appropriate (currently your home directory in the Computer Lab and st.cs.kuleuven.be and on the repository server(s) where needed).

Copying them to your home directory is done in an intelligent way, such that the chance something is being overwritten that shouldn't have been, is minimal. Look here for a short explanation about the most important files and how they are manipulated.

You must also not forget to copy the keys yourself to the computer(s) from where you want to connect. Best do this directly after generating them on the above web application when/because they are presented there. Afterwards you can pick up the last generated ones via the same URL above where you generated them.

Once you have generated and copied your SSH key(s) to your computer(s) from where you want to connect, wait a day before using them to connect to the available workstations as shown above.

You might also be interested in using an ssh-key-agent so that you do not need to type in your passphrase every single time you want to use ssh. There are abundant sources on the Internet that describe the use of an ssh-key-agent - it is handy, but not necessary, therefore we don't go into detail here.