If I am on the university network I can SSH into the machines with ssh username@machine_name. However when I am off the university network I have to ssh username@ssh.university.edu.
When I SSH to the unversity.edu address, it will automatically redirect me to a random machine (presumably for load balancing). Everything works fine except tunneling. I can tunnel (for example VNC connections) using ssh -L 5900:localhost:5901 username@machine_name, but tunneling over the university domain doesn’t work (e.g. ssh -L 5900:localhost:5901 username@ssh.university.edu).
How could I get the tunneling to work?