Before connecting to the cluster, you need:
If you are connected to:
You can connect directly without using the jump server:
ssh <username>@moriah-gw.cs.huji.ac.il
When connecting from outside the university network, you must use the jump server (bava.cs.huji.ac.il).
⚠️ Login nodes are low-resource virtual machines intended only for ⚠️
From University Network (Direct Connection) :
ssh username@moriah-gw.cs.huji.ac.il
From External Network (Using Jump Server) :
ssh -J username@bava.cs.huji.ac.il username@moriah-gw.cs.huji.ac.il
mkdir -p ~/.ssh && chmod 700 ~/.ssh
touch ~/.ssh/config
chmod 600 ~/.ssh/config
2.Add to ~/.ssh/config:
# Prevent disconnections
Host *
ServerAliveInterval 180
ServerAliveCountMax 2
# Configure jump host (for external access)
Host hurcs-proxy
User YOUR_USERNAME
HostName bava.cs.huji.ac.il
Port 22
# Configure cluster access
Host moriah
User YOUR_USERNAME
HostName moriah-gw.cs.huji.ac.il
Port 22
# Comment out ProxyJump when on university network
ProxyJump hurcs-proxy
3.Connect using simplified command:
ssh moriah
Instructions for connecting via MobaXterm on a Windows machine can be found here.
From university network:
ssh -X username@moriah-gw.cs.huji.ac.il
From external network:
ssh -X -J username@bava.cs.huji.ac.il username@moriah-gw.cs.huji.ac.il
Or add to ~/.ssh/config:
Host moriah
ForwardX11 yes
Mobaxterm has a built in X server. The default configuration in Mobaxterm is to run X server.
Press “Settings” button to open “Mobaxterm Configuration” window.
Select X11 tab and see that option “Automatically start X server at Mobaxterm start up” is selected.

Right click on the session you configured for the cluster and select “Edit session”. Under “Advanced SSH settings” see that “X11-Forwarding” is selected.
