You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to use port forwarding (browsing webpages locally running on cluster, running jupyter/marimo on a cluster).
Agent forwarding
Dynamic forwarding: Use the login node as a jump host to the nodes.
Example:
# Example for your HPC cluster
Host hpc_cluster
HostName cluster.example.com # The actual hostname or IP address
User your_username # Your username on the cluster
Port 22 # SSH port (default is 22)
IdentityFile ~/.ssh/id_rsa_hpc # Path to your private key for the cluster
# Forward your local port 8888 to the cluster's port 8888 (for Jupyter)
LocalForward 8888 localhost:8888 # If Jupyter running on the login node
# OR, if Jupyter running on a worker node, and you know the worker node's internal IP:
# LocalForward 8888 worker_node_internal_ip:8888
# OR, for dynamic port forwarding to a worker node (more complex, see below):
# DynamicForward 8888
# If using a jump host to access worker nodes:
# ProxyJump jump_host_user@jump_host:port
# Example for a specific worker node (if you connect directly)
Host worker1
HostName worker1.internal.cluster # Internal IP or hostname
User your_username
IdentityFile ~/.ssh/id_rsa_hpc
# No ProxyJump needed if connecting directly
# Example for a jump host (if needed for worker node access)
Host jump_host
HostName jump_host.example.com
User jump_host_user
IdentityFile ~/.ssh/id_rsa_jump
# Example for your local machine (less common, but can be useful)
Host localhost
User your_local_username # Useful if different from your system username
IdentityFile ~/.ssh/id_rsa_local # Optional, if you use a specific key for local
Extra: sshfs to mount remote directories locally.
The text was updated successfully, but these errors were encountered:
Setting up ssh config
Example:
Extra:
sshfs
to mount remote directories locally.The text was updated successfully, but these errors were encountered: