Controlling local and remote machines
cd, ls, cp, mv, and rm provide all features of a graphical file manager (e.g. Finder)info <command> for more informationThe GNU core utilities
You can bundle commands in a shell script, e.g.:
Running the script will execute the commands sequentially:
By default a script is interpreted by the current shell
You can specifiy an interpreter in the shebang
This allows you to use the script as an executable
SSH allows you to connect to remote machines (e.g. Levante))
You have to provide your user name and the full hostname:
This will start a login shell on one of Levante’s login nodes
You have to enter your password on every login
Generate a private/public SSH key pair on your local system
Upload the public (.pub) key to your DKRZ profile (how to)
Use your private SSH key to authenticate when connecting to levante
Create a config file for convenience
~/.ssh/config
(call man ssh_config for more info)
Connecting to Levante simplifies to
The configuration is used by all tools using an SSH connection (more than you think)
Levante is the current supercomputer at DKRZ (since 2022)
High-performance computers consist of various components

Different ways to work on a cluster, depending on the task
salloc)sbatch)/home |
/work |
/scratch |
|---|---|---|
| keep scripts | store output | temporary stuff |
| small | big | big |
| SSD | HDD | HDD |
| backup | no backup | deleted after 2 weeks |
Anything not saved will be lost — Nintendo
Jobs that require more resources or run longer can be submitted to the job scheduler (SLURM)
There are dedicated partitions for different use cases
(e.g., compute, shared, interactive, …)
Try to use the smallest amount of resources
(e.g. shared with --mem=50G)
ssh) and (mostly) use them like a local machineI am just gonna throw a bunch of stuff at you.
Take what you might find interesting.
— Scott Chacon
… are text editors on steroids
tmux allows you to create and attach to terminal sessions
Create a new session
Attach to to running sessions
You need to login to the same login node (e.g., levante31)
allows you to run graphical applications on a remote server
Requires an X11-server on your local machine (e.g. XQuartz)
Pass the -X1 option to your ssh command2
allows secure transmission of data over SSH
Use -L to forward a local port to a port on the remote machine
Data served on the remote port (e.g. JupyterHub, HTTP server)
is then accessible locally at http://localhost:8888