summaryrefslogtreecommitdiff
path: root/rapid-tunneling
diff options
context:
space:
mode:
Diffstat (limited to 'rapid-tunneling')
-rwxr-xr-xrapid-tunneling2
1 files changed, 1 insertions, 1 deletions
diff --git a/rapid-tunneling b/rapid-tunneling
index 97bf167..92bd7c7 100755
--- a/rapid-tunneling
+++ b/rapid-tunneling
@@ -27,4 +27,4 @@ rm -rf $tmpdir
# Remove host key of $host (in case it has changed)
ssh-keygen -R $host
# Run in background
-setsid ssh -o 'StrictHostKeyChecking no' -o 'BatchMode yes' -o 'ServerAliveInterval 60' -T -p $port -i $HOME/key -R $tunnelport:127.0.0.1:22 -l $user $host < $HOME/ra-params.tar.gz
+busybox start-stop-daemon -S -b -m -p $HOME/pid -x /bin/sh -- -c "exec ssh -o 'StrictHostKeyChecking no' -o 'BatchMode yes' -o 'ServerAliveInterval 60' -T -p $port -i $HOME/key -R $tunnelport:127.0.0.1:22 -l $user $host < $HOME/ra-params.tar.gz"