Skip to content

Instantly share code, notes, and snippets.

View joe4dev's full-sized avatar

Joel Scheuner joe4dev

View GitHub Profile
@matsadler
matsadler / socks-proxy
Last active December 3, 2019 14:16
Bash script to setup/teardown SSH SOCKS proxy on macOS
#!/bin/bash
if [[ -z "$1" ]]; then
echo "usage: $0 [user@]hostname"
exit 1
fi
ssh -ND 1080 "$1" &
PID=$!