Files
cloud-worker/scripts/local/port-forward.sh
T
Hanashi 2d6dbf9f81 pod reset recovery: new SSH port, consolidated downloads to 1T volume, retire tmpfs overflow
The network volume was resized to 1TB (which reset the pod and wiped the
container disk). All weights now live persistently on /workspace; the
/dev/shm overflow scheme is no longer needed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 01:58:41 -04:00

16 lines
498 B
Bash
Executable File

#!/bin/bash
# Persistent port forward: localhost:8188 -> pod ComfyUI.
# Auto-reconnects if the tunnel drops. Ctrl-C to stop.
# Requires the echelon key loaded in your ssh agent.
POD_HOST=216.243.220.136
POD_PORT=17561
while true; do
ssh -N -L 8188:127.0.0.1:8188 \
-o ServerAliveInterval=30 -o ServerAliveCountMax=3 \
-o ExitOnForwardFailure=yes \
-o StrictHostKeyChecking=accept-new \
-p "$POD_PORT" root@"$POD_HOST"
echo "tunnel dropped, reconnecting in 3s..."
sleep 3
done