SSH access
SSH is the standard way to log in to institute servers – secure, scriptable and cross-platform.
$ ssh HU-Account@ssh.mathematik.hu-berlin.de
For everyone working with their HU account – this is the standard case.
$ 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.
@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.eduroam, LAN) SSH is reachable directly.
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
SSH keys instead of password
More secure than password login and avoids repeated prompts – set up once, then never again.
-
Generate a key pair (local, one-time)
$ ssh-keygen -t ed25519 -C "HU Berlin"Accept the default path; setting a passphrase is recommended.
-
Upload the public key to the server
$ ssh-copy-id yourusername@ssh.mathematik.hu-berlin.deLog in with the password once – from then on the key is enough.
-
Log in without a password
$ ssh yourusername@ssh.mathematik.hu-berlin.de
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
Connecting to compute servers
Five dedicated servers for compute-intensive tasks.
| Server | Cores | CPU |
|---|---|---|
alpha |
160 | Intel® Xeon® Platinum 8380 @ 2.30 GHz |
beta |
104 | Intel® Xeon® Platinum 8270 @ 2.70 GHz |
eta |
224 | Intel® Xeon® Platinum 8280L @ 2.70 GHz |
zeta |
224 | Intel® Xeon® Platinum 8280L @ 2.70 GHz |
theta |
32 | Intel® Xeon® Gold 5222 @ 3.80 GHz |
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 |
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