mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-06-28 22:10:35 +00:00
Reverse SSH changes
This commit is contained in:
parent
edb3521902
commit
b28e560329
10
app.json
10
app.json
|
@ -1,7 +1,13 @@
|
|||
{
|
||||
"name": "Kaboom.pw",
|
||||
"PRIVATE_KEY": {
|
||||
"description": "Private key for data sync and reverse SSH",
|
||||
"env": {
|
||||
"REMOTE_KEY": {
|
||||
"description": "Private key for reverse SSH",
|
||||
"required": true
|
||||
},
|
||||
"SYNC_KEY": {
|
||||
"description": "Private key for data sync",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
mkdir -p dumps/
|
||||
echo "$PRIVATE_KEY" > .ssh/id_rsa
|
||||
echo "$REMOTE_KEY" > .ssh/remote
|
||||
echo "$SYNC_KEY" > .ssh/id_rsa
|
||||
chmod 600 .ssh/remote
|
||||
chmod -R 500 dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/
|
||||
|
||||
ssh-keyscan notabug.org >> .ssh/known_hosts
|
||||
|
@ -12,7 +14,7 @@ git clone git@notabug.org:kaboom/schematics.git plugins/WorldEdit/schematics/
|
|||
done'
|
||||
|
||||
./tmux new -d -s remote 'while true; do
|
||||
ssh -o Compression=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -o StrictHostKeyChecking=no -c aes128-gcm@openssh.com -S none -N -T -R 64518:localhost:25565 serv@play.kaboom.pw
|
||||
ssh -i ~/.ssh/remote -o Compression=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -c aes128-gcm@openssh.com -S none -N -T -R 31007:localhost:25565 kaboom.pw@play.kaboom.pw
|
||||
sleep 1
|
||||
done'
|
||||
|
||||
|
|
Loading…
Reference in a new issue