This page is a quick start guide to setting up remote access using
ssh. The assumption is that people will be connecting
from either a private laptop or a managed workstation — these
instructions are not suitable under other circumstances such as an
internet cafe, so please use one-time
passwords in that case. To understand the need for
ssh please read the overview.
The two ways of connecting are using kerberos over a VPN, or using an ssh user key to a gateway, "local $HOME", or DMZ machine.
Kerberos over VPN
- If you are not on the University network, connect via a VPN.
- Request a Kerberos ticket using
kinitcommand on macOS and Linux, or a MIT keytray on Windows:kinit abc123@DC.CL.CAM.AC.UK Password for abc123@DC.CL.CAM.AC.UK: ############
where abc123 is your CRSID. Note that your CRSId must be all lowercase and the Kerberos realm DC.CL.CAM.AC.UK must be all uppercase. Then enter your Lab password when prompted. On some computers, you may need to add option “kinit -f ...” to get a “forwardable” ticket (in case this isn't the default). - Connect via SSH using the -K flag to any Unix machine in the Lab:
ssh -K abc123@ely.cl.cam.ac.uk
Clients for Windows such as PuTTY require slightly more configuration and an application will be needed to obtain the Kerberos ticket. See instructions for Windows.
SSH user key
- Generate an ssh user key on your device. The private key should remain ONLY on the machine - never copy it anywhere else.
- Copy the public key to the machine to which you need to connect, and save it in your authorized_keys file in .ssh in your home directory on the destination machine, with a suitable from= string
For more details, see the Unix, Windows or MacOS pages.
There are a number of public gateway machines which are always
available, the main one being slogin.cl.cam.ac.uk.
If you can't connect to slogin, you can also try
svr-ssh-0, svr-ssh-1 or ely as
a backup.