Remote access to Linux Lab computers using SSH

These instructions have been tested on CentOS 7, Ubuntu 18.04, Windows 10, and Mac OSX Mojave.
In order to run specialist software applications (such as matlab, opnet, sage etc) from a PC in one of the two Linux labs A2.02 or A2.03, and be able to display the application on your personal computer, follow the steps related to your operating system. As detailed in the diagram below, connect from your personal computer, through the gateway server, onto one of the machines in the specialist Linux labs. The diagram gives an example of the lab machines - please see appendix for a complete list of lab machines available to connect to.

Remote access via ssh using X11 display

NB: The lab machines are dual-boot, and automatically boot into Linux overnight, however, if the machine is switched off, or being used during the day by Windows users, you will not be able to connect to that specific machine and you may need to try an alternative machine.

Linux

To connect into the Linux system is a two stage process:

  • Connect into the gateway server: ssh.ee.port.ac.uk using software for a terminal window
  • In a terminal window ssh -X onwards to a host machine in one of the specialist Linux Labs (A2.02 / A2.03)

Open a terminal and connect to the gateway server using the following command, substituting username with your login credentials. Accept the fingerprint when prompted, followed by your password.

ssh -X username@hostname

Test Students

You will now be able to launch your application from the remote PC, such as Opnet, which will display on your own machine.

Eg. Type in the name of the application you wish to run in the terminal window
example: [ opnet ] or [ firefox ] or [ matlab ] or [ sage ]
You can press the key sequence of CTRL +C to quit if there are any problems

Windows

In order to connect into the Linux system using a Windows based machine you will need to have some extra software which will allow remote access to a Linux X11 window graphics environment. We recommend using the successfully tested graphical application called Xming, along with access software such as Putty.

Install and launch Xming (Xming is a background X window server):

Agree to all the default options, and create desktop/quick launch items if desired.

Install and launch Putty:

Agree to all the default options, and create desktop/quick launch items if desired.

Ensure that X11 forwarding is switched on to allow a display on the client Expand SSH from the menu on the left to show X11 Tick Enable X11 forwarding

PuTTY Configuration

Connect to the gateway entry server Select Session from the menu on the left, and type ssh.ee.port.ac.uk in the Host Name field

PuTTY Configuration 2

If this is the first time you are connecting to the gateway server from this machine, you will be prompted to accept a security key fingerprint. Select Yes to this prompt.
Login to the gateway server using your university username and password.

PuTTY Configuration 3

You will now be able to ssh on to a machine in one of the Linux labs A2.02 or A2.03 with the -X options to allow display back to your host.

ssh -X username@hostname [ e.g. mouse, rabbit, fox, bode, bell, marconi etc... ] 

E.g. Type in the name of the application you wish to run in the terminal window
example: [ opnet ] or [ firefox ] or [ matlab ] or [ sage ]
You can press the key sequence of CTRL +C to quit if there are any problems


MacOS

Install the Xquartz program for X11 display (xquartz is the official X server software for mac.

Agree to all the default options, and create desktop/quick launch items if desired.

Using your preferred editor (we have used vim), edit the ssh_config file is modified to allow X11 forwarding

vim /etc/ssh/ssh_config

XAuthLocation /opt/X11/bin/xauth
ForwardAgent yes
ForwardX11 yes

Launch XQuartz and select Terminal from within XQuartz (you may need to right-click on XQuartz, select Applications, Terminal).

Connect to the gateway server using the following command, substituting username with your login credentials. Accept the fingerprint when prompted, followed by your password.

ssh -X username@ssh.ee.port.ac.uk

Connect to the lab machine, again substituting username with your login credentials, and hostname with the name of a machine in either A2.02 or A2.03. Accept the fingerprint when prompted, followed by your password.

ssh -X username@hostname

You will now be able to launch your application from the remote PC, such as Opnet, which will display on your own machine.

E.g. Type in the name of the application you wish to run in the terminal window
example: [ opnet ] or [ firefox ] or [ matlab ] or [ sage ]
You can press the key sequence of CTRL +C to quit if there are any problems

APPENDIX

Temporary access has been added for machines in rooms Portland 2.27, Liongate 0.14a and Liongate 0.14b.  

A2.02 Hostnames A2.03 Hostnames PO 2.27 Hostnames LG 0.14a Hostnames LG 0.14b Hostnames
ampere
bell
bode
boole
bose
coulomb
dirac
doppler
edison
euler
fermi
henry
hertz
joule
laplace
marconi
maxwell
morse
napier
newton
norton
ohm
planck
siemen
tellegen
tesla
volta
watt
bear
beaver
bison
bull
camel
cheetah
chimp
chipmunk
cougar
coyote
deer
elk
fox
gazelle
gerbil
giraffe
goat
gorilla
hippo
horse
hyena
ibex
impala
jackal
jaguar
kanga
koala
kudu
lemur
leopard
llama
lynx
marmot
meerkat
mink
mouse
mule
ocelot
okapi
otter
panda
quagga
rabbit
rhino
sheep
shrew
squirrel
tapir
vixen
wolf
wombat
zebra
PO227PC01
PO227PC02
PO227PC03
PO227PC04
PO227PC05
PO227PC06
PO227PC07
PO227PC08
PO227PC09
PO227PC10
PO227PC11
PO227PC12
PO227PC13
PO227PC14
PO227PC15
PO227PC16
PO227PC17
PO227PC18
PO227PC19
PO227PC20
PO227PCLECT
LG014A-PC01
LG014A-PC02
LG014A-PC03
LG014A-PC04
LG014A-PC05
LG014A-PC06
LG014A-PC07
LG014A-PC08
LG014A-PC09
LG014A-PC10
LG014A-PC11
LG014A-PC12
LG014A-PC13
LG014A-PC14
LG014A-PC15
LG014A-PC16
LG014A-PC17
LG014A-PC18
LG014A-PC19
LG014A-PC20
LG014A-PC21
LG014A-PC22
LG014A-PC23
LG014A-PC24
LG014A-PCLECT
LG014B-PC01
LG014B-PC02
LG014B-PC03
LG014B-PC04
LG014B-PC05
LG014B-PC06
LG014B-PC07
LG014B-PC08
LG014B-PC09
LG014B-PC10
LG014B-PC11
LG014B-PC12
LG014B-PC13
LG014B-PC14
LG014B-PC15
LG014B-PC16
LG014B-PC17
LG014B-PC18
LG014B-PC19
LG014B-PC20
LG014B-PC21
LG014B-PC22
LG014B-PC23
LG014B-PC24
LG014B-PC25
LG014B-PC26
LG014B-PC27
LG014B-PC28
LG014B-PC29
LG014B-PC30
LG014B-PC31
LG014B-PC32
LG014B-PC33
LG014B-PC34
LG014B-PC35
LG014B-PC36
LG014B-PC37
LG014B-PC38
LG014B-PC39
LG014B-PC40
LG014B-PC41
LG014B-PC42
LG014B-PC43
LG014B-PC44
LG014B-PC45
LG014B-PC46
LG014B-PC47
LG014B-PC48
LG014B-PCLECT

For help regarding this article contact IT Support.