Logon from Linux

Required software

A SSH (Version 2 compatible) client is required for logging into the HPC resources from a UNIX machine. These are normally packaged with the Operating system. To find out whether these are installed into your path on your system, simply open up a terminal and type:

Logging in

To log into the Arc systems using secure shell simply issue the following at the command prompt:

(where <facilityname> is arc3 , arc2, marc1 or polaris )

So, to log in to Arc2 (for example):

You should be prompted for your password which you should enter.

All the examples below refer to Arc3. For access to other HPC facilities, simply replace arc3 with arc2, marc1 or polaris .

X11-forwarding

Secure shell allows X display (GUI) traffic to be tunnelled (and encrypted) through the SSH connection. To enable this, first check the status of your local display by typing:

on your local machine. If this returns something like localhost , then the variable is set correctly. If it is undefined you will need to set it by e.g.:

for bash/sh or in csh:

Provided your local display is set up correctly, the -X flag can be used to allow X11 forwarding:

Please note that recent versions of the secure shell client have an “Enable X11 trusted” -Y flag which should be used instead of the -X flag:

For the recent clients, the -X flag will still work, however some applications do not work properly on the remote server if -Y is not used.

File transfer

The ssh tools come with two clients for file transfer: scp (secure file copy) and sftp (secure version of FTP).

SCP

Using scp is very similar to the normal copy ( cp ) and remote copy ( rcp ) commands in UNIX:

In the above <target> and <destination> correspond to the files being transferred. A local file is specified by its filename, a remote file is indicated through the syntax <username>@<machine>:<path> . If a / follows the : , the path is taken from the root of the filesystem, however without a / the path is taken relative to your home directory. e.g. to upload a local file to your home directory on arc3 issue:

Similarly, a file can be downloaded with:

(note that . will put the file in your current directory.)

SFTP

SFTP can be used in a very similar way to other command line FTP clients. To establish a connection to Arc3 (for example):

and to Polaris,

You will be asked for your password and presented with the SFTP prompt when connected. Typing help or ? gives a list of commands. Similar to FTP, cd will change the remote directory and lcd change the local directory. put and get can then be used to upload and download files.

User and machine names

Please note that if your local username matches your username on the HPC platform, there is no need to specify the <username>& portion of the commands above. Furthermore, if you are connecting from a machine within the leeds.ac.uk domain, it is not necessary to include this; e.g.

will log you into Arc3, provided you are connecting from a machine which is on campus and your usernames are identical on the local and remote machines.