Direct access to internal machines from outside the department is not allowed (as much as possible).
Since end of April 2025, this also includes direct SSH access. To login on internal machines, you must either use the departmental VPN or a public departmental SSH server.
Those official gateways ensure the right access control: it is easier to keep an eye on unintended/unwanted access attempts and access rights can be enforced in line with KU Leuven security policies.
If you encounter problems using them, please do not hesitate to contact helpdesk.
Using Departmental VPN
Members of the department can use the departmental VPN - for the time being, students can not.
When using the departmental VPN, you can work remotely as if you are connected to a departmental network (except for some corner case exceptions, e.g. the caveats)
If you experience problems, please check whether you are using the right VPN config - if it still doesn't work, contact helpdesk (and specify which config you are using).
Using Departmental SSH (including student computer labs)
For students, there is 1 public departmental SSH server: st.cs.kuleuven.be
For members of the department, there are 3 public departmental SSH servers: ssh.cs.kuleuven.be, ssh1.cs.kuleuven.be and ssh2.cs.kuleuven.be
- These are identical in setup - it doesn't matter which one you use. ssh is the newest, ssh1 is the previous and ssh2 is a virtual machine - but it really shouldn't matter.
You can login on the public SSH servers from anywhere in the world. You can use the public SSH servers themselves for simple, occasional usage. You can also manually further login to your destination machine but in that case you are better of by using the public SSH servers as jump hosts (see a bit further below).
- For members, logging in on the SSH server is always with your departmental login.
For students always with your KU Leuven student account.
Also when using it as jump host as shown below. - Moreover logging in is best done using SSH-Certs as explained elsewhere.
- For members, the departmental home directory is available on the SSH servers.
For students it is not: only a local home directory with very little disk quota is available on st. - Moreover not much software is installed on them - they are really just meant as pass-through servers, not for actual work on them.
By using these (public) SSH servers as jump host, you can login to your destination host through them in a single command, without having to manually connect to your destination host:
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
- Logging in on the destination host must of course be done with the appropriate account on that machine: either your departmental login if it is a system group administered intranet machine or your KU Leuven member or student account if it is a computer lab machine or the specific account that is created for you on the destination machine.
- Special access ports of and tunneling through the destination backend machine can/must be given as usual, with the -p and/or -L options.
And if you login on a self-administered machine it is worthwhile to configure that machine to accept SSH-Certs as well, as is described there. Then you no longer have to worry about passwords or SSH keys: the same SSH-Cert you use to login on the departmental SSH server can then be used (in 1 go if you use a jump host) for the backend destination machine.
Using KU Leuven VPN or SSH jump hosts
There are also KU Leuven VPN and SSH jump hosts - you can use them as well - but since these are still outside of the departmental networks, not all internal services are accessible via them.
We try to make the most important internal services accessible, but in some cases this is technically impossible. For instance access to virtual machines in the departmental private cloud is technically impossible using the KU&Leuven VPN or SSH - you must use the departmental ones for that.
If you want to try them, please see the KU Leuven VPN service web page and/or use the following jump hosts:
ssh -J u0123456@jump.extranet.kuleuven.be,u0123456@jump-l.icts.kuleuven.be account@machine.cs.kuleuven.be
Yes, you do indeed need to jump through 2 jump hosts to get to the departmental machines - this is because of the way the KU Leuven security zones are structured.
And you do need to use SSH-Certs on the KU Leuven jump hosts.
If for some reason, you cannot use the departmental SSH server(s) directly, you can (try to) use the KU Leuven jump hosts to get to internal services that are not directly accessible for them, by jumping through the departmental SSH server(s) via them:
ssh -J u0123456@jump.extranet.kuleuven.be,u0123456@jump-l.icts.kuleuven.be,login@ssh.cs.kuleuven.be account@172.23....
And finally, you can also use the KU Leuven jump hosts to login to the departmental computer lab machines:
ssh -J r0123456@jump.extranet.kuleuven.be,r0123456@jump-a.icts.kuleuven.be r0123456@machine.student.cs.kuleuven.be
Do notice that:
- the 2nd jump host is different from the one used above because the computer lab machines are in a different network zone than the departmental machines.
- you can also use a member account u0123456 instead of the r-account shown above in all 3 stages

