Wrap proxy in infinite loop

This commit is contained in:
mathiascode 2020-02-11 00:15:38 +02:00
parent 7c4d1ad880
commit c5b686d4da
2 changed files with 12 additions and 9 deletions

View file

@ -17,9 +17,9 @@ ssh-keyscan github.com >> .ssh/known_hosts
# checker in the background
while true; do
dtach -n server script/server.sh
dtach -n proxy script/proxy.sh
dtach -n schematics script/schematics.sh
dtach -n server script/server.sh > /dev/null 2>&1
dtach -n proxy script/proxy.sh > /dev/null 2>&1
dtach -n schematics script/schematics.sh > /dev/null 2>&1
sleep 5
done &

View file

@ -6,9 +6,12 @@
set -x
ssh -i ~/.ssh/proxy \
-o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes \
-c aes128-ctr \
-C -S none -N -T -R \
25565:localhost:25565 \
remote@play.kaboom.pw
while true; do
ssh -i ~/.ssh/proxy \
-o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes \
-c aes128-ctr \
-C -S none -N -T -R \
25565:localhost:25565 \
remote@play.kaboom.pw
sleep 1
done