2023-02-22 08:31:38 +01:00
|
|
|
#!/bin/ksh
|
2023-08-23 16:53:46 +02:00
|
|
|
#pkill -f "7326:localhost:7326 anonicb@slackers.openbsd.org"
|
|
|
|
#sleep 1
|
2024-08-27 08:09:14 +02:00
|
|
|
#ssh -fN -o ServerAliveInterval=15 -L 7326:localhost:7326 anonicb@slackers.openbsd.org
|
2023-08-23 16:53:46 +02:00
|
|
|
#autossh -M 0 -f -T -N -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -L 7326:localhost:7326 anonicb@slackers.openbsd.org
|
2024-08-27 08:09:14 +02:00
|
|
|
/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 \
|