You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/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
|