SSH access

SSH is the standard way to log in to institute servers – secure, scriptable and cross-platform.

Standard · HU account
$ ssh HU-Account@ssh.mathematik.hu-berlin.de

For everyone working with their HU account – this is the standard case.

Legacy maths account only
$ ssh alter-mathe-account@math@ssh.mathematik.hu-berlin.de

The @math suffix selects the legacy maths authentication. Only needed if your account was not created at CMS.

Which account is mine? Students and staff who joined from roughly 2018 onwards use the HU account (variant 1). The legacy maths accounts (variant 2) remain functional, but no new maths accounts are being issued. In the future, the @math.hu-berlin.de email address will also be available for HU accounts – at the moment it only works for holders of legacy maths accounts.
Off-campus: A VPN connection is required. On campus (Wi-Fi eduroam, LAN) SSH is reachable directly.
Please do not run compute-intensive programs (e.g. Matlab, simulations) on the login server – use the compute servers instead.
01 · Setup

By operating system

SSH is built in on all three platforms today – no extra client needed.

Linux

Open a terminal and connect:

$ ssh yourusername@ssh.mathematik.hu-berlin.de

macOS

Open Terminal via Spotlight: ⌘ Space, type „Terminal“.

$ ssh yourusername@ssh.mathematik.hu-berlin.de

Windows 10 / 11

Open PowerShell or Command Prompt (SSH is built in since Windows 10 1809):

> ssh yourusername@ssh.mathematik.hu-berlin.de

GUI alternatives: PuTTY · WinSCP

02 · Keys Recommended

SSH keys instead of password

More secure than password login and avoids repeated prompts – set up once, then never again.

  1. Generate a key pair (local, one-time)
    $ ssh-keygen -t ed25519 -C "HU Berlin"

    Accept the default path; setting a passphrase is recommended.

  2. Upload the public key to the server
    $ ssh-copy-id yourusername@ssh.mathematik.hu-berlin.de

    Log in with the password once – from then on the key is enough.

  3. Log in without a password
    $ ssh yourusername@ssh.mathematik.hu-berlin.de
03 · Convenience

SSH-Konfigurationsdatei (~/.ssh/config)

Avoids retyping long hostnames over and over.

Create or extend ~/.ssh/config:

Host mathlogin
    HostName  ssh.mathematik.hu-berlin.de
    User      yourusername

Host beta
    HostName  beta
    User      yourusername
    ProxyJump mathlogin

After this:

$ ssh mathlogin           # Login-Server
$ ssh beta                # direkt auf den Rechenserver
04 · Compute servers

Connecting to compute servers

Five dedicated servers for compute-intensive tasks.

Current load

As of 16:06 · average of the last 5 min

Most free right now: zeta.

147 of 224 threads free

  • alphamoderately busy · 42.3 %

    80 cores · 160 threads · 503 GiB RAM

    Intel® Xeon® Platinum 8380 @ 2.30 GHz

    92of 160 threads free

    ssh -J yourusername@ssh.mathematik.hu-berlin.de yourusername@alpha
  • betamoderately busy · 34.2 %

    52 cores · 104 threads · 1,258 GiB RAM

    Intel® Xeon® Platinum 8270 @ 2.70 GHz

    68of 104 threads free

    ssh -J yourusername@ssh.mathematik.hu-berlin.de yourusername@beta
  • etabusy · 52.2 %

    112 cores · 224 threads · 3,022 GiB RAM

    Intel® Xeon® Platinum 8280L @ 2.70 GHz

    107of 224 threads free

    ssh -J yourusername@ssh.mathematik.hu-berlin.de yourusername@eta
  • zetamoderately busy · 34.5 %recommended

    112 cores · 224 threads · 3,022 GiB RAM

    Intel® Xeon® Platinum 8280L @ 2.70 GHz

    147of 224 threads free

    ssh -J yourusername@ssh.mathematik.hu-berlin.de yourusername@zeta
  • thetafree · 4.1 % busy

    16 cores · 32 threads · 1,007 GiB RAM

    Intel® Xeon® Gold 5222 @ 3.80 GHz

    31of 32 threads free

    ssh -J yourusername@ssh.mathematik.hu-berlin.de yourusername@theta
Verify SSH keys

Compare the fingerprint ssh shows on first connect in full with this value. If it differs: abort, tell IT support.

Check all five at once (bash or zsh):

for s in alpha beta eta zeta theta; do ssh-keygen -lf <(ssh-keyscan -t ed25519 $s.mathematik.hu-berlin.de); done
  • alpha
    ED25519SHA256:jhwwATJd42kphvdIxz5my1zp4eNiHxk1lcB/XlMDyH4
    RSA-3072SHA256:RCHiYkn91ziNC71WG2qMNGUQFAuehnELpWLtBHydnKM
  • beta
    ED25519SHA256:iLx7+HbZ2QmJlQqRWeSHFT+r5rVaRgZaigclHDRM1aY
    RSA-3072SHA256:ky1TluRHUmWpEdojzVp1f0h0Meot/mN4NY8SVMbIbRs
  • eta
    ED25519SHA256:h3T/FkjIlazlZwjODDJz15CSw6Sxy3Gtp7tkhRyDMqk
    RSA-3072SHA256:t0ur7w50sZs6Fviqq0NbTfw2SO2CgZduKdSBUSNfCLg
  • zeta
    ED25519SHA256:ZDtzs3fz6rZO+ZumfCGbhnZRv3QWoICH13sQdFeTGVk
    RSA-3072SHA256:ZxUiMifkLpH9jfGwCVhefSpFTPyPHZqQacUuYdxRlDo
  • theta
    ED25519SHA256:4g4s3CBecaVLMzePmHb3SZO+vzeoKnd3RI1kqi83Nes
    RSA-3072SHA256:13901Gxff70IEEiJQu+lznspfsV+BafK9wXBlZHBbp0

Direct connection via the login server (jump host, one step):

$ ssh -J ssh.mathematik.hu-berlin.de yourusername@beta

Or in two steps:

$ ssh yourusername@ssh.mathematik.hu-berlin.de
$ ssh beta

Keeping sessions alive (tmux / screen)

Terminal multiplexers prevent running processes from being killed when the SSH connection drops (network issues, closed laptop, etc.).

Action tmux screen
New session tmux new -s name screen -S name
Detach Ctrl+b, then d Ctrl+a, then d
Reattach tmux attach -t name screen -d -R name
List sessions tmux ls screen -ls
05 · Files

Transferring files

Four tools – pick by scope and comfort.

rsync

Recommended for directories: transfers only changes, with progress.

$ rsync -avz local/ yourusername@ssh.mathematik.hu-berlin.de:target/
$ rsync -avz yourusername@ssh.mathematik.hu-berlin.de:source/ local/

scp

Simple for individual files.

$ scp file yourusername@ssh.mathematik.hu-berlin.de:target/
$ scp yourusername@ssh.mathematik.hu-berlin.de:source.pdf .

sshfs

Mount your home directory locally – like a USB stick.

$ sshfs yourusername@ssh.mathematik.hu-berlin.de: ~/uni_home
$ fusermount -u ~/uni_home

Graphical tools

Drag & drop, no command line.

  • Dolphin / Nautilus: sftp://yourusername@ssh.mathematik.hu-berlin.de/
  • WinSCP: winscp.net (SFTP)
  • Cyberduck: free for macOS / Windows