Connecting via SSH¶
Connect via Secure Shell (SSH) to Ngarrgu Tindebeek (NT), OzSTAR, Trevor, and the data-mover nodes, configure optional shortcuts and session keep-alives, and reuse SSH connections to avoid repeated two-factor authentication (2FA) prompts.
Before you start¶
Ensure you have an approved OzSTAR account (Accounts and Projects) and have completed Two-Factor Authentication (2FA) enrollment in the Accounts Portal.
Open a terminal with an SSH client on your local computer:
Open your system terminal application. The OpenSSH client (
ssh) is available by default.Open Applications > Utilities > Terminal. The OpenSSH client (
ssh) is available by default.Install the Windows Subsystem for Linux (WSL) using the Microsoft WSL installation guide (recommended). WSL provides a standard Linux terminal with OpenSSH and full support for SSH connection multiplexing.
If you use an older version of Windows without WSL, install PuTTY. Note that PuTTY and native Windows OpenSSH do not support SSH connection multiplexing.
Connecting to login nodes and data-movers¶
Warning
Login nodes are shared by all users for short interactive tasks such as editing files, compiling code, and submitting Slurm jobs. Do not run long jobs or compute-intensive workloads on login nodes — submit them to compute nodes via Slurm (see Policies and Creating and Submitting Jobs).
Ngarrgu Tindebeek (NT)¶
Connect via the round-robin address, which assigns you to either tooarrana1 or tooarrana2:
ssh <username>@nt.swin.edu.au
Or connect directly to a specific NT login node:
ssh <username>@tooarrana1.hpc.swin.edu.au
ssh <username>@tooarrana2.hpc.swin.edu.au
Jobs submitted from tooarrana1 or tooarrana2 run on NT compute nodes (see Swinburne HPC Systems).
OzSTAR¶
Connect via the round-robin address, which assigns you to either farnarkle1 or farnarkle2:
ssh <username>@ozstar.swin.edu.au
Or connect directly to a specific OzSTAR login node:
ssh <username>@farnarkle1.hpc.swin.edu.au
ssh <username>@farnarkle2.hpc.swin.edu.au
Jobs submitted from farnarkle1 or farnarkle2 run on OzSTAR compute nodes.
Trevor¶
The Trevor login node is reachable only by jumping from an NT or OzSTAR login node. Once logged in to tooarrana1/2 or farnarkle1/2, run:
ssh trevor
Jobs submitted from trevor run on the private-cloud, internet-enabled Trevor compute nodes.
Data-movers¶
Use the dedicated data-mover nodes (such as data-mover01.hpc.swin.edu.au; inspect live nodes with sinfo -s -p datamover) for transferring files to and from Swinburne HPC storage so transfers do not contend with shared login nodes (see Transferring Files):
ssh <username>@data-mover01.hpc.swin.edu.au
Jumping between nodes¶
From any Swinburne HPC login node, you can jump to another login node, Trevor, or a data-mover using short internal hostnames:
NT login nodes:
t1,t2OzSTAR login nodes:
f1,f2Trevor:
trevorData-movers:
dm1,dm2, ... (ordata-mover01,data-mover02, ...)
For example, from any login node:
ssh t2
ssh f1
ssh trevor
ssh dm3
Assigning a login node with myhome¶
Because nt.swin.edu.au and ozstar.swin.edu.au are round-robin addresses, consecutive logins can land on different login nodes. For persistent sessions that must stay on a single login node — such as tmux, Jupyter notebooks, VNC desktops, VS Code Remote-SSH, or AI coding tools — run myhome on any login node to find your assigned node:
myhome
myhome deterministically returns your assigned login node for the current cluster (for example, tooarrana1 on NT or farnarkle1 on OzSTAR) based on your username so persistent workloads stay balanced across login nodes. Connect directly to that assigned hostname (for example, tooarrana1.hpc.swin.edu.au) whenever you run persistent tools.
Optional: SSH shortcuts and keep-alive¶
To avoid typing your full username and hostname on every connection — and to stop idle terminals from timing out — add shortcut entries to ~/.ssh/config on your local computer (inside WSL on Windows):
Host nt
HostName nt.swin.edu.au
User <username>
ServerAliveInterval 120
Host ozstar
HostName ozstar.swin.edu.au
User <username>
ServerAliveInterval 120
ServerAliveInterval 120 sends a keep-alive message every 120 seconds so idle SSH sessions are not dropped by intermediate firewalls. If you regularly use persistent tools on your myhome-assigned node, you can add a dedicated shortcut for it too (for example, Host t1 pointing to tooarrana1.hpc.swin.edu.au).
Set restrictive file permissions on ~/.ssh/config as required by OpenSSH:
chmod 600 ~/.ssh/config
Once configured, you can connect with the short alias instead of the full address:
ssh nt
ssh ozstar
Reusing SSH connections (multiplexing)¶
Enter your 2FA code once, then reuse that authenticated connection for additional terminals and file transfers to the same destination without entering another code.
This works on Linux, macOS, and Windows inside WSL. On Windows, run every command below inside WSL; native Windows OpenSSH and PuTTY do not support connection multiplexing.
Set up multiplexing¶
On your local computer, create a private directory for shared control sockets:
mkdir -p ~/.ssh/sockets chmod 700 ~/.ssh/sockets
Add the appropriate block for your operating system to
~/.ssh/config(and runchmod 600 ~/.ssh/configif you created the file).OpenSSH merges settings from every matching
Hostblock in~/.ssh/config, matching eachHostpattern against the alias you type rather than the expandedHostName. This block works standalone with real hostnames (nt.swin.edu.au,ozstar.swin.edu.au, and*.hpc.swin.edu.au) even if you skipped the optional shortcuts above, and also matches thent,ozstar,t1/t2, andf1/f2shortcuts. If you define any other custom shortcut alias (such asdm1), append that alias name to thisHostline as well.With
ControlMaster autoask, OpenSSH prompts you with a pop-up window before allowing another terminal or program to reuse your connection.First install the pop-up helper (on Ubuntu or Debian):
sudo apt install ssh-askpass
Then add this block to
~/.ssh/config:Host nt ozstar t1 t2 f1 f2 nt.swin.edu.au ozstar.swin.edu.au *.hpc.swin.edu.au ControlMaster autoask ControlPath ~/.ssh/sockets/%C ControlPersist 300
Add this block to
~/.ssh/config(inside WSL on Windows):Host nt ozstar t1 t2 f1 f2 nt.swin.edu.au ozstar.swin.edu.au *.hpc.swin.edu.au ControlMaster auto ControlPath ~/.ssh/sockets/%C ControlPersist 300
Next steps¶
Graphical Access (X11 and VNC) — forward GUI windows or launch a VNC desktop on your assigned login node.
Restricted SSH Keys for Automated Jobs — set up command-restricted keys for unattended automated workflows.
Using AI Coding Tools — run AI coding assistants and VS Code Remote-SSH responsibly on NT and OzSTAR.