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
Copy file name to clipboardExpand all lines: docs/access/ssh.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,58 @@ ssh -A cscsusername@ela.cscs.ch
174
174
ssh daint.cscs.ch
175
175
```
176
176
177
+
## SSH tunnel to a service on Alps compute nodes via ela
178
+
179
+
If you have a server listening on a compute node in an Alps cluster and want to reach it from your local computer, you can do the following: allocate a node, start your server bound to `localhost`, open an SSH tunnel that jumps through `ela` to the cluster, then use `http://localhost:PORT` locally.
180
+
Details on how to achieve this are below.
181
+
182
+
Before starting, make sure you:
183
+
184
+
-[Have SSH keys loaded in your agent][ref-ssh-agent].
185
+
- Have your CSCS username handy (replace `MYUSER` below).
186
+
- Have your server running on a compute node on Alps.
187
+
See the [Slurm documentation][ref-slurm] for help on how to allocate a node and start your server on a compute node.
188
+
- Know the compute node ID (e.g., `nid006554`) and the port of your running server.
189
+
190
+
!!! warning "Fast fixes when starting a server or before tunneling"
191
+
- Port already in use locally: pick another PORT (e.g., 6007) in both your server and the tunnel command below.
192
+
- Auth prompts loop: verify your SSH MFA to CSCS and that your SSH agent is correctly set up and loaded with your keys.
193
+
194
+
!!! tip "Binding to `127.0.0.1` ensures the service is only reachable via your tunnel"
0 commit comments