diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-06 15:29:58 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-06 15:29:58 +0200 |
commit | ad05cb18f03f3a97a918e090c38ba760147a0bb6 (patch) | |
tree | 233097b3ccbf1a4fef18a291d0d8fda3fba34c03 /bin/extra/aivpn | |
parent | 1a7e35285abb5db60d2e1544ce0100e82c5d3490 (diff) | |
parent | 511b6c1bc9acd9e6029d08a6c448f6e0037755fb (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/extra/aivpn')
-rwxr-xr-x | bin/extra/aivpn | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/extra/aivpn b/bin/extra/aivpn deleted file mode 100755 index aab90a8..0000000 --- a/bin/extra/aivpn +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -logn() { printf "%s\n" "$@"; } - -if [ "$1" = "-k" ] -then - pgrep -f -- "ssh.*-L.*vm" | xargs kill - exit -fi - -keyadd ehb/ai - -export SSH_ASKPASS="sshpass" -export SSH_ASKPASS_REQUIRE="prefer" -export PASSWORD="zot/qemu" - -logn "I: Waiting for connectivity..." -while ! ssh -o ConnectTimeout=1 -o BatchMode=yes vm 2>&1 | grep "Permission denied" > /dev/null -do sleep 1 -done - -logn "I: Activating vpn" -ssh vm "rasdial \"vpn.student.ehb.be\"" -ssh -f -N \ - -L 2222:10.2.160.41:22 \ - vm |