summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-09 23:53:04 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-10-09 23:53:04 +0200
commitb4f7c506a75d4d540b902d533bad3a733b976e27 (patch)
tree415415831bba2942875a243bfaa107bfdfe0e043
parentbfe88abda9d2c6dc593df62610eb289c4f6b1df0 (diff)
updated for new vm
-rwxr-xr-xbin/extra/aivpn10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/extra/aivpn b/bin/extra/aivpn
index 55e013a..14d176c 100755
--- a/bin/extra/aivpn
+++ b/bin/extra/aivpn
@@ -4,7 +4,7 @@ logn() { printf "%s\n" "$@"; }
if [ "$1" = "-k" ]
then
- pgrep -f -- "ssh.*-L.*mc-wd" |
+ pgrep -f -- "ssh.*-L.*vm" |
xargs kill
exit
fi
@@ -21,16 +21,16 @@ keyadd ehb/ai
export SSH_ASKPASS="$0"
export SSH_ASKPASS_REQUIRE="prefer"
-export PASSWORD=aluc
+export PASSWORD=zot/qemu
logn "I: Activating vpn"
-# ssh mc-wd "rasdial \"vpn.student.ehb.be\" \"luca.raymaekers@student.ehb.be\" \"$(pass school/login.ehb.be)\""
+ssh vm "rasdial \"vpn.student.ehb.be\""
ssh -f -N \
-L 2222:10.2.160.41:22 \
- mc-wd
+ vm
ssh -t \
-L 8188:localhost:8188 \
- mc-wd \
+ vm \
ssh -N -L 8188:localhost:8188 luca@10.2.160.41
logn "[8188], [2222]"