diff options
Diffstat (limited to 'dbx-proxy')
| -rwxr-xr-x | dbx-proxy | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dbx-proxy b/dbx-proxy new file mode 100755 index 0000000..2eae026 --- /dev/null +++ b/dbx-proxy @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-only + +set -euo pipefail + +if [[ $# -ne 1 ]]; then + echo "ERROR: missing port to proxy" >&2 + exit 1 +fi + +R="$(dirname "$(realpath "${BASH_SOURCE[0]}")")" +C="dbx" + +port="$1" +container start "$C" >/dev/null +exec ssh -F "$R/ssh/config" -L "localhost:$port:localhost:$port" -N $C |
