Docs, scripts, and conda environments for working on the BMRC cluster at the University of Oxford.
ssh <username>@cluster1.bmrc.ox.ac.uk # or cluster2/3/4clusterX are for file management and job submission only — do not run processing on them.
To make access persistent (no repeated passwords), add the following to ~/.ssh/config:
Host linux
HostName linux.ox.ac.uk
User <oxford-sso-username>
IdentityFile ~/.ssh/ox-linux
Host cluster1.bmrc
HostName cluster1.bmrc.ox.ac.uk
User <bmrc-username>
ProxyJump linux
ControlMaster auto
ControlPath ~/.ssh/ssh-%r@%h:%p
ControlPersist yesThen ssh cluster1.bmrc (and rsync ... cluster1.bmrc:...) just works.
| Location | Use |
|---|---|
/users/<group>/<username> |
Home directory — small quota (10 GB) |
/well/<group>/users/<username> |
Project/work storage — put data/code here |
From a local machine, use rsync:
# to BMRC
rsync -Phr <file> <username>@cluster1.bmrc.ox.ac.uk:/well/<group>/users/<username>/
# from BMRC
rsync -Phr <username>@cluster1.bmrc.ox.ac.uk:/path/to/file ./Use screen so sessions survive disconnects:
screen # start a session
srun -p short --pty bash # CPU node
srun -p gpu_interactive --gres gpu:1 --pty bash # GPU node
# detach: Ctrl-A Ctrl-D ; list: screen -ls ; reattach: screen -r <id>An interactive GPU node (compG017) with 2 GPUs is also directly accessible via ssh compG017. Check GPUs with nvidia-smi. On that node, unset proxy variables before network access:
unset https_proxy http_proxy no_proxy HTTPS_PROXY HTTP_PROXY NO_PROXYWrite a job.sh with SLURM directives and submit:
sbatch job.shUseful commands:
watch squeue -u <username> # monitor your jobs
squeue -p <queue> # queue status
scancel <job-id> # cancel one job
scancel -u <username> # cancel all your jobsmodule load Miniforge3
module load gitAdd frequently used module load lines to ~/.bashrc for convenience.
VSCode with the Remote – SSH extension gives you a local editor with a shell and filesystem on BMRC.
One-time setup:
-
Activate your Oxford Linux Shell Account via the university IT help portal.
-
Install VSCode.
-
Install the Remote - SSH extension from the Marketplace.
-
Click the green remote indicator (bottom-left of VSCode) → Open SSH Configuration File… → pick
~/.ssh/config. -
Add a host entry:
Host vscode-bmrc HostName cluster1.bmrc.ox.ac.uk ProxyJump <oxford-sso-username>@linux.ox.ac.uk User <bmrc-username> ForwardAgent yes
On the Oxford VPN you can omit the
ProxyJumpline.
Connect:
Green remote indicator → Connect to Host… → vscode-bmrc. Enter your SSO password, then your BMRC password.
Tip: Set up SSH keys for linux.ox.ac.uk to avoid typing two passwords each time (standard ssh-copy-id / ~/.ssh/authorized_keys workflow).