summaryrefslogtreecommitdiff
path: root/bin/extra/ehb_vmvpn
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-05-26 13:04:22 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-05-26 13:04:22 +0200
commitb73f0c173702001c089f6db91a582765db80861e (patch)
tree44201247e2a3895077016963b4df1b930c9845c6 /bin/extra/ehb_vmvpn
parent60daaef86429ca867e230fc01fbd758cdef72602 (diff)
Merge ehb scripts in one
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\""