Skip to content

Instantly share code, notes, and snippets.

@superyngo
superyngo / tunman.sh
Last active March 18, 2026 07:57
SSH Tunnel Manager
#!/usr/bin/env bash
# ============================================================
# tunnel.sh — SSH Tunnel Manager
# Pure bash, no python/jq dependencies, state stored in TOML
# Usage: ./tunnel.sh [--base DIR] [config|start|stop|list|delete|clean|help]
# ============================================================
# Parse --base option (extract from any position)
_parse_base_dir() {
BASE_DIR=""