From 4f41c41f2297eaf7e5494c23189a2486b8130cb0 Mon Sep 17 00:00:00 2001 From: hiroTochigi Date: Wed, 26 Jun 2024 22:42:16 -0500 Subject: [PATCH] start ssh tunnel --- src/aws/dependencies/reverseShell.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/aws/dependencies/reverseShell.sh b/src/aws/dependencies/reverseShell.sh index ed1117cb..4f207bec 100755 --- a/src/aws/dependencies/reverseShell.sh +++ b/src/aws/dependencies/reverseShell.sh @@ -48,5 +48,7 @@ function closeSSHTunnel(){ function restartSSHTunnel(){ local instanceName=$1 local instanceIp=$2 + local monitorPort=2200 updateSshConfigInterface $instanceName HostName $instanceIp + autossh -f -T -N -q -4 -M $monitorPort $instanceName }