forksand-it-manual/source/resources/apps/ssh/socks-chain.sh

9 lines
202 B

#!/bin/bash
# socks-chain.sh
# GPLv3+
# Creates a SOCKS chain from the local machine to the host on the commandline.
# Usage:
# socks-chain.sh [hostname]
set -x
ssh -S none -N -L 8080:localhost:8080 $@