mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-09-28 19:23:01 +00:00
Attempt to use autossh
This commit is contained in:
parent
814dc757db
commit
bbe4062c5f
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
PATH="$HOME/java/bin/:$HOME/tmux/bin/:$PATH"
|
PATH="$HOME/autossh/bin/:$HOME/java/bin/:$HOME/tmux/bin/:$PATH"
|
||||||
|
|
||||||
echo "$REMOTE_KEY" > .ssh/remote
|
echo "$REMOTE_KEY" > .ssh/remote
|
||||||
echo "$SYNC_KEY" > .ssh/id_rsa
|
echo "$SYNC_KEY" > .ssh/id_rsa
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
while true; do
|
export AUTOSSH_POLL=30
|
||||||
ssh -i ~/.ssh/remote -o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -c aes128-ctr -C -S none -N -T -R 53950:localhost:25565 -p 53940 remote@play.kaboom.pw
|
autossh -M 53941 -i ~/.ssh/remote -o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -c aes128-ctr -C -S none -N -T -R 53950:localhost:25565 -p 53940 remote@play.kaboom.pw
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
Loading…
Reference in a new issue