dotfiles/.bin/icb-tunnel

9 lines
457 B
Plaintext
Raw Normal View History

2023-02-22 08:31:38 +01:00
#!/bin/ksh
#pkill -f "7326:localhost:7326 anonicb@slackers.openbsd.org"
#sleep 1
#ssh -fN -o ServerAliveInterval=15 -L 7326:localhost:7326 anonicb@slackers.openbsd.org
#autossh -M 0 -f -T -N -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -L 7326:localhost:7326 anonicb@slackers.openbsd.org
/usr/bin/netstat -n \
| /usr/bin/grep -q '127\.0\.0\.1\.7326' \
|| ssh -fN -o ServerAliveInterval=15 -L 7326:localhost:7326 anonicb@slackers.openbsd.org \