Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help

Remote access to the Engineering Department machines

Note: This page is long because it deals with many scenarios. For any particular user/situation the procedure isn't too tricky, though depending on your machine you may initially need to install and configure some free software

When making our machines available to users beyond our walls we need to balance ease of use against security considerations. Several options exist. Your choice of method to use depends on what you want to access the machines for, how far away you are, and the type of machine you have. You may well have to install extra software on your machine. In particular you're likely to need programs that are "ssh-enabled" - "ssh" being short for "secure shell", a mechanism that provides the extra security needed nowadays.

Once you've installed and configured the software it's possible to use our machine as easily remotely as locally for most purposes, though speed may be an issue for graphics-intensive programs.

Note that the range of methods may change at short notice in response to security alerts.

Machines

Most of our machines are hidden from the outside world. If you want to access the Teaching System from outside the University you're currently restricted to getting in using gate - our "gateway" machine. Note that gate doesn't have many programs installed, so you might want to use slogin to access a linux server from gate.

If you want to access the Teaching System from within CUED you can use

Making a connection

Somehow you'll have to connect your machine to the internet. You can use a standard phone line (see Accessing CUED and the Internet via modem for options) or broadband if your machine isn't already networked.

If you're local, and you have problems with commercial broadband or domestic networks, see Robin Walker's Cable Modem Troubleshooting Tips.

Avoiding logins

Mail

You needn't log in to our machines to read mail, even if your mail's stored at CUED. See our Using Mail User Agents page for details.

Copying files

There are several ways to get files in and out of the Teaching System without having to log in. The method you use depends on the size and number of files to be copied, where the other machine is (some methods only work inside CUED), and who else will have access to the files.

Matlab and Abaqus

You can use the Departmental license server to run MATLAB or Abaqus on your computer in college or in a private (non-college) residence. See

MDP disk

If you want to run programs like Octave or would like to practice C++ on your own PC you can get a set-up that's much like the one in the DPO by getting the Multidisciplinary Design Project (MDP) disk

Accessing files on the WWW

We have thousands of files on the WWW. Most of them are visible to everyone, but a few resources are protected. They're protected in one of 2 ways

Logging in

The programs mentioned below are those most commonly used by students from college rooms, etc. They can be customised to make remote login a matter of pressing a button or two (rather than typing the command lines mentioned below), but you might first need to configure your set-up.

Text only

If you're happy to work just with text, use If you're going to run a CPU-intensive program, you should login from gate to one of our Linux Servers.

Graphics

There are several ways to remotely access our machines. The situation's further complicated by the range of user machines and by various security issues. If the instructions below don't work for you, read the Troubleshooting and Technical Information sections. The latter presents some of the issues you'll need to be aware of if something goes wrong.

Mac OSX

These work for user abc123 on an old Mac running MacOS X10.3 from outside cam.ac.uk.

Windows/Vista

Use Xwin32 (30 day free license), XMing (free and optionally includes an enhanced PuTTY Link SSH client and a portable PuTTY replacement package), or VNC for graphical access.

If you want to want to login to the Teaching System from within CUED, you can use the Xwin version that that CUED's purchased and follow these instructions

Linux

These instructions should work for user abc123 from outside cam.ac.uk.

Starting Lab Sessions

Lab sessions are often started by clicking on the icon in the taskbar. If this isn't available you can type start from a terminal window instead - you'll be shown a list of options.

General Troubleshooting

Failure or unreliabilty could be due to problems on your machine, on CUED machines, or anywhere between. Problems aren't always easy to diagnose, so if you report a problem to help, tell us the operating system you're using, the method of access you're using, which CUED machines you're using, when you had the problem, and what programs you were running.

See net news for reports of University network trouble.

Access to CUED from certain colleges might be prone to problems because they use NAT-based firewalls. If you're trying to connect using ssh from Jesus for example, you may find that it helps to use

   ssh -o 'ServerAliveInterval 60' -X ...
or with newer vesions of ssh
   ssh -o 'ServerAliveInterval 60' -Y ...

Troubleshooting VNC

Lots can go wrong - the installed software can be faulty; the networking and firewalls can block communications; you might get mixed up with passwords; and it's easy to make typing errors. So first try the following simple scenario - it will check to see whether you're using the right passwords and show you what to expect when things do work.

Technical Information

X Windows System

X windows programs (like xclock and the programs on the Teaching System, etc) don't put graphics directly onto the screen. They need to have another program - an X server - running. Programs like xclock tell the X server what to do using commands that are part of the X protocol. These commands might be just a few bytes long, almost as simple as "draw a line from (10,10) to 30,10)". The X server interprets these commands, using the current settings of line-thickness, color, etc to produce graphics. Note that xclock and the X server needn't be on the same machine.

This approach is flexible network-wise, and remote working is simple, but the X server's quite a complicated program. The protocol messages might be compact for some actions, but bulky for others.

VNC

An alternative strategy is used by VNC, which essentially keeps copying screendumps over from a virtual screen on the remote machine to the screen you're sat at. It does this efficiently, so that only modified areas of the screen are copied over. An extra program needs to run on the distant machine and on the local machine, but these needn't be too complex. Because VNC only deals with the end product - the graphics - it doesn't care how the graphics are produced. Some kinds of graphics will produce more network traffic with X11 than with VNC, and some less.

VPN

VPN (Virtual Private Network) provides secure access over public telecommunications infrastructure. When you have successfully created a VPN connection to the department you should then be able to connect to internal local resources as if your machine were on the departmental network.

Networks and Security

Some of our machines are only available from within CUED. Some are only available within the cam.ac.uk domain. You need to be aware of these restrictions when trying to work remotely. Note also that gate is a general name for more than one machine - if you access gate twice you may be using 2 different machines.

Machines communicate by sending messages to numbered input 'sockets' (called 'ports'). VNC communicates on "TCP ports 5900-5906". These are often blocked by firewalls (firewalls are security programs that might be on your machine or might be run by the college). The trick is to use "ssh tunnelling". ssh encrypts information and uses port 22, which is rarely blocked, to "tunnel" through the firewall. This means that if you can use ssh to get into a machine, you can use VNC. The encryption involves an overhead. The less that's transmitted, the less that needs coding and decoding.

Both X11 and VNC approaches should only be used with encryption.

Screen Management

Do you want the remote machine's output to take over your whole screen, or should the remote screen be a window on the local desktop? Sometimes you have no choice. Both options have their problems.

Certificates and keys for secure connections

There may be situations where ssh/slogin has doubts about whether the machine claiming to be (say) gate.eng.cam.ac.uk really is that machine. The warning message might mention .ssh/known_hosts:line-number for example. There's usually an innocent reason for this. Removing the line in question should solve the problem but if you want to check on authenticity look at our Certificates and keys for secure connections page.

Advanced/Specialist features

See also Wikipedia's Comparison of remote desktop software

© Cambridge University Engineering Dept
Information provided by Tim Love (tl136) (with some info provided by Patrick Gosling, Peter Benie, Arul Britto et al).
Last updated: September 2011