Accessing today’s cluster via SSH
Now that we are starting to use more hardware, let’s move from JupyterHub to SSH and submit jobs via the Slurm scheduler.
This section shows you how to access our temporary training cluster via SSH.
First, please make sure to log out of the JupyterHub session to relinquish the hardware: we will need it!
Click on File in the top menu and select Log out at the very bottom.
Step 1: Get the info
During the course, we will give you 3 pieces of information:
- a link to a list of usernames,
- the hostname for our temporary training cluster,
- the password to access that cluster.
Step 2: Claim a username
Add your first name or a pseudo next to a free username on the list to claim it.
Your username is the name that was already on the list, NOT what you wrote next to it (which doesn’t matter at all and only serves to signal that this username is now taken).
Your username will look like userxx—xx being 2 digits—with no space and no capital letter.
Step 3: Run the ssh command
Linux users: open the terminal emulator of your choice.
macOS users: open “Terminal”.
Then type:
ssh userxx@hostnameand press Enter.
- Replace
userxxwith your username (e.g.user09). - Replace
hostnamewith the hostname we will give you on the day of the course.
When asked:
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Answer: “yes”.
We suggest using the free version of MobaXterm, a software program that comes with a terminal emulator and a graphical interface for SSH sessions.
Here is how to install MobaXterm:
- download the “Installer edition” to your computer (green button to the right),
- unzip the file,
- double-click on the
.msifile to launch the installation.
Here is how to log in with MobaXterm:
- open MobaXterm,
- click on Session (top left corner),
- click on SSH (top left corner),
- fill in the Remote host * box with the cluster hostname we gave you,
- tick the box Specify username,
- fill in the box with the username you selected (e.g.
user09), - press OK,
- when asked
Are you sure you want to continue connecting (yes/no/[fingerprint])?, answer: “yes”.
Here is a live demo.
Step 4: Enter the password
When prompted, enter the password we gave you.
You will not see anything happen as you type the password. This is normal and it is working, so keep on typing the password.
This is called blind typing and is a Linux safety feature. It can be unsettling at first not to get any feedback while typing, as it really looks like it is not working. Type slowly and make sure not to make typos.
If you want to copy/paste the password, you can paste in the MobaXterm terminal by:
- pressing Shift+Insert or
- right-clicking with your mouse (you might have to enable this by going to Settings > Configuration > Terminal and checking Paste using right-click) or
- clicking the middle button of your mouse.
Then press Enter.
If you use MobaXterm, you will be asked whether you want to save the password. Click No.
(There is no point, as this is a temporary cluster, and if you click Yes, you will have to go through extra steps to create a password database).
Am I logged in?
To know whether or not you are logged in, look at your prompt: it should look like the following (with your actual username):
[userxx@login1 ~]$
Troubleshooting
Problems logging in are almost always due to typos. If you cannot log in, retry slowly, entering your password carefully.
How do I log out?
You can log out by pressing Ctrl+d.