b5b33afcd7
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
8 lines
206 B
Bash
Executable file
8 lines
206 B
Bash
Executable file
#!/bin/bash
|
|
if [[ "$2" == "up" ]] || [ "$2" == "vpn-up"]]; then
|
|
su - reekymarko -c 'ssh -f -N -R 8123:localhost:22 teapot sleep 10'
|
|
fi
|
|
|
|
if [[ "$2" == "down" ]] || [ "$2" == "vpn-up"]];then
|
|
killall ssh
|
|
fi
|