summaryrefslogtreecommitdiff
path: root/bin/extra/ehb_vmvpn
diff options
context:
space:
mode:
Diffstat (limited to 'bin/extra/ehb_vmvpn')
-rwxr-xr-xbin/extra/ehb_vmvpn22
1 files changed, 0 insertions, 22 deletions
diff --git a/bin/extra/ehb_vmvpn b/bin/extra/ehb_vmvpn
deleted file mode 100755
index 4a51bfc..0000000
--- a/bin/extra/ehb_vmvpn
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-err() { printf "%s\n" "$@"; }
-
-if [ "$1" = "-k" ]
-then
- pgrep -f -- "ssh.*-L.*vm" | xargs kill
- exit
-fi
-
-err "I: Waiting for connectivity..."
-while ! ssh -o ConnectTimeout=1 -o BatchMode=yes vm 2>&1 | grep "Permission denied" > /dev/null
-do sleep 1
-done
-
-
-export SSH_ASKPASS="sshpass"
-export SSH_ASKPASS_REQUIRE="prefer"
-export PASSWORD="zot/qemu"
-
-err "I: Activating vpn"
-ssh vm "rasdial \"vpn.student.ehb.be\""