From dc031209a54d979b78e18a7989810b9534218322 Mon Sep 17 00:00:00 2001 From: 12nick12 Date: Tue, 5 Jun 2018 16:27:55 -0400 Subject: [PATCH] Update start.sh --- host/start.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/host/start.sh b/host/start.sh index cdb0384..6c43b4c 100644 --- a/host/start.sh +++ b/host/start.sh @@ -1,6 +1,7 @@ #!/bin/bash -remoteport=$(sqlite3 /opt/sshjump/sshjump.db 'select port from sshjump') +dir=/opt/sshjump +remoteport=$(sqlite3 $dir/sshjump.db 'select port from sshjump') localport=22333 -autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R $remoteport:localhost:$localport root@remotehost.com -p 22333 -i /opt/sshjump/id_rsa +autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R $remoteport:localhost:$localport root@remotehost.com -p 22333 -i $dir/id_rsa