IMPORTANT NOTICE:

2026-04-16: There is an upcoming change in how to use the (public) departmental SSH servers from outside departmental networks[*]:

  • from April 27 2026 onwards access to the public departmental SSH servers will no longer be possible using your own SSH keys
    • if you already switched to SSH-Certs after the previous change about password-access, this new change does _NOT_ affect you
  • you must use SSH-Certs instead
    • in case you cannot use SSH-Certs, we have identified a number of typical use cases with a suggested workaround

This change is in addition to the previous changes:

  • from April 02 2026 onwards access to the public departmental SSH servers will no longer be possible using your (departmental) password
  • from May 05 2025 onwards direct SSH access to any internal machine, including the self-managed desktops and laptops, is no longer possible

[*] Do notice that KU Leuven networks, including the wireless ones, are outside departmental networks - KU Leuven security policy tries to limit horizontal/east-west traffic (=traffic within KU Leuven) as much as possible to limit the possible spread of malicious actions.

See below how to access (internal) departmental machines and services using VPN and/or SSH.

If you foresee or encounter problems, please do not hesitate to contact helpdesk and we will see what can be done.

Remote Access

This page describes access to the departmental networks and computers on them. It is only useful though if you have an account on the computers of the department either as a member or as a student.

The Department of Computer Science maintains several networks to connect computers to. These networks are allocated to different zones, with different access rights.

Most computers of our department are allocated to zones with a high degree of access to the different services of/on our computers.
Computers not belonging to our department do not have the same level of access to our services for obvious (security and privacy) reasons.

Thus, when you are connected to another network (i.e. your home-network, a network of another department, faculty or university, a public hot-spot, the internet in general) you can of course still access the services and data on our computers, but you must be prepared for a number of additional safety precautions.

Access to Departmental Services from outside Departmental Networks

When connected to an outside network (including KU Leuven wireless networks), you cannot access internal departmental services directly. There are exceptions to this general rule, which are described elsewhere.

There are 2 (easy) ways with which you can gain access to internal services from anywhere in the world (if the local access control of the network you are connected to permits):

  • for members of the department, not (yet) for students: our own, departmental OpenVPN : Instructions and config files here
  • for both members and students: SSH and SSH-tunneling: most (if not all) platforms have at least 1 SSH client and mostly also with tunneling capabilities

The available OpenVPN and SSH servers and ports of OpenVPN and SSH services are shown on the services overview.

  • There is also the KU Leuven VPN service but because this is still outside the departmental firewall, it doesn't help in getting access to (all internal) departmental services. It might help for other uses though - YMMV.

The easiest way to login to a departmental machine using SSH is by using the departmental public SSH servers as jumphost:

  • ssh -J login@ssh.cs.kuleuven.be account@machine.cs.kuleuven.be
  • ssh -J r0123456@st.cs.kuleuven.be r0123456@machine.student.cs.kuleuven.be
  • more detailed information about using VPN and/or SSH is described on a separate page

Moreover we advise to use SSH-Certs to login on both the jump hosts and the backend destination hosts.

There is also more documentation about student computer labs if you are looking for help about which machines to use as a student and how to use them.

What is most suitable for you?
  • By using our own OpenVPN, you can really work at home or elsewhere as if you are at your office: you don't need to change any URLs to get to where you want/need.
    • it works on all platforms that are supported by OpenVPN, of which there are a lot, therefore this is probably the recommended way to go.
    • it takes a one-time-only setup but after that you can usually use it with a single click or command
  • SSH and SSH tunneling has some clear advantages:
    • it is less setup and easier to do on the spot once you get acquainted with how it works
    • SSH client software is available (as far as we know) on all platforms
    but also some disadvantages:
    • when using tunneling, you need to change the URLs pointing to internal services and replace the real (internal) hostname by localhost.cs.kuleuven.be where needed
    • not all (backend) services can be tunneled

CAVEATs

There are some caveats you need to be aware of when using a VPN to access departmental services from outside the department ... we are confident that these issues are minor ones which most users will not notice, not even when using the VPN on a daily basis ... for those who do (by having to use an unreliable local network connection or by using some internal departmental service that isn't used widely or often) just be aware that the problems below might pop up ... your mileage may vary.

  • When establishing a VPN connection, you are of course still using you own, local network connection for the real network access. The VPN is just a safe tunnel over this otherwise untrustworthy network. If something happens to your real network connection, your VPN will of course be lost as well. Often, you will need to restart the VPN connection after your real network connection re-appears ... even if your network connection was only gone for a second or so. Some applications won't notice that your network connection and VPN dis- and re-appeared, but other applications will have to be restarted as well.
  • When accessing departmental services from outside departmental networks, there is one element that might cause some troubles: DNS. The departmental DNS service uses 2 views: an internal one and an external one. When referring to departmental services from outside the departmental networks, the external view is used; when referring from inside the departmental networks, the internal view is used. There are subtle differences between the views, so it is not guaranteed that each and every departmental service is indeed accessible and operational from outside departmental networks. We do our best to make all services available as much as possible, but if something doesn't seem to work the way it should, please let us know so we can look into it.