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: https://sourceforge.net/projects/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: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 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: https://www.xquartz.org/ (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

A2.02 Hostnames A2.03 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

Share
Email
Facebook
Twitter
Reddit
Subscribe
Enter your email address to receive a notification when the article is updated
Email Address
Subscribe
Unsubscribe
Share
To
Subject
Message
Send

Was this article helpful
Thank you for your feedback
How can we improve?