#!/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=14278 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