#!/usr/bin/env bash # Forward the node-side inference ports to the laptop: localhost:8081/8082/8083 set -u pkill -f 'ssh -fN -L 8081' 2>/dev/null; pkill -f 'ssh -fN -L 8082' 2>/dev/null; pkill -f 'ssh -fN -L 8083' 2>/dev/null ssh -fN -L 8081:localhost:8081 -L 8083:localhost:8083 M3U96a ssh -fN -L 8082:localhost:8082 M3U96b for p in 8081 8082 8083; do printf "%s: " $p; curl -s -m 3 localhost:$p/v1/models | head -c 120; echo; done