From 2af46c4b947a5dbc669dc1130443cfa22015d944 Mon Sep 17 00:00:00 2001 From: 12nick12 Date: Wed, 6 Jun 2018 06:53:35 -0400 Subject: [PATCH] Update start_systemd.sh --- host/start_systemd.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/host/start_systemd.sh b/host/start_systemd.sh index 89a1d89..85e98d2 100644 --- a/host/start_systemd.sh +++ b/host/start_systemd.sh @@ -1,10 +1,11 @@ #!/bin/bash dir=/opt/sshjump -serverhost=user@test.test.com +servername=user@test.test.com +usersname=sshjump serviceport=22 remoteport=$(sqlite3 $dir/sshjump.db 'select port from sshjump') localport=22 until ping -c1 google.com &>/dev/null; do :; done -autossh -N -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R $remoteport:localhost:$localport $server -p $serverport -i $dir/id_rsa +autossh -N -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R $remoteport:localhost:$localport $username@$servername -p $serverport -i $dir/id_rsa