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
MobaXtrem is an enhanced terminal for Windows with built-in X11 server, tabbed SSH client, network tools and fun games!
Download and install the “Home Edition (Installer edition)” from here.
Mobaxterm general configuration
Open MobaXtrem and press “Settings” button to open “Mobaxterm Configuration” window.
To prevent disconnecting from a session on the cluster when there is no activity you need to select “SSH keepalive” under “SSH” tab.
X Forwarding is used for opening software with a graphical user interface (GUI) from a remote server.
Under “X11” tab see that “Automatically start X server at Mobaxterm start up” is selected.
Mobaxterm session configuration
In MobaXtrem press "Session" button at the top left side of the window to configure a connection to the cluster.
Press "SSH" button at top left corner of “Session settings” window.
In the “Mobaxterm passwords settings” window press “New” button to configure a new user.
A new window will open to configure the username.
Go to “Bookmark settings” tab and enter a name in the “Session name” field.
Press OK button at bottom of “Session settings” window to save the session you just created.
Select “Network settings” tab and press “SSH gateway (jump host)”.
Configure Jump Host:
You can now double click on the session you have just created in the left pannel to connect to the cluster.
⚠️ Note: GUI applications may be slow and impact other users. Use sparingly.
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.