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