Part 1: Logging in via SSH
This page covers how to log into a remote machine.
SSH client
To connect to a remote computer you will need a SSH client.
SSH is a tool that allows us to connect to and use a remote computer as our own. Please follow the directions below to install an SSH client for your system if you do not already have one.
Windows
Modern versions of Windows have SSH available in Powershell. You can test if it is available by typing ssh --help
in Powershell. If it is
installed, you should see some useful output. If it is not installed, you will get an error. If SSH is not available in Powershell, then
you should install MobaXterm from http://mobaxterm.mobatek.net. You will want to get the Home edition (Installer edition). However, if Powershell works, you do not need this.
MacOS
macOS comes with SSH pre-installed, so you should not need to install anything. Use your “Terminal” app.
Linux
Linux users do not need to install anything, you should be set! Use your terminal application.
The instructions below will guide you through setting up a logging account on ARCHER2.
Connecting to ARCHER2
Sign up for an account on ARCHER2 through SAFE
Go to the Menu “Login accounts” and select “Request login account”
Choose your project id from “Choose Project for Machine Account” box and click “Next”
On the next page, the ARCHER2 system should be selected. Click “Next”
Enter the username you would prefer to use on ARCHER2. Every username must be unique, so if your chosen name is taken, you will need to choose another
Now you have to wait for the course organiser to accept your request to register. When this has happened, your account will be created on ARCHER2. Once this has been done, you should be sent an email. If you have not received an email but believe that your account should have been activated, check your account status in SAFE which will also show when the account has been activated. You can then pick up your one shot initial password for ARCHER2 from your SAFE account.
Generate an SSH key pair and upload it to SAFE
In addition to your password, you will need an SSH key pair to access ARCHER2. There is useful guidance on how to generate SSH key pairs in the ARCHER2 documentation.
Once you have generated your key pair, you need to add the public part to your ARCHER2 account in SAFE:
Go to the Menu “Login accounts” and select the ARCHER2 account you want to add the SSH key to
On the subsequent Login account details page click the “Add Credential” button
Select “SSH public key” as the Credential Type and click “Next”
Either copy and paste the public part of your SSH key into the “SSH Public key” box or use the button to select the public key file on your computer.
Click “Add” to associate the public SSH key part with your account
The public SSH key part will now be added to your login account on the ARCHER2 system.
Log into ARCHER2
You should now be able to log into ARCHER2 by following the login instructions in the ARCHER2 documentation.
E.g:
ssh username@login.archer2.ac.uk
Note
If you are using ARCHER2 before you download the files you should move to the /work
filesystem:
cd /work/[project code]/[group code]/[username]
The /work
filesystem is a high performance parallel file system that can be accessed by both the frontend login nodes and the compute nodes. All jobs on ARCHER2 should be run from the /work
file system. ARCHER2 compute nodes cannot access the /home
file system at all. Any jobs attempting to use /home
will fail with an error.
For more information the ARCHER2 documentation: https://docs.archer2.ac.uk/user-guide/io/#using-the-archer2-file-systems