Skip to content

Commit

Permalink
generate ssh tunnel config
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Feb 3, 2024
1 parent 25dbd8d commit 852f911
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aws/restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ function restart(){
echo "get the new ip address. The procedure might take time for a while"
publicIp=$(waitForOutput "getLatestIpAddress $instanceId")

portConfigArray=$(getArrayValueAsStringByKey $instanceName tcpPortArray)

echo "the new ip address is $publicIp"
updateIPAddress $balloonName $publicIp

echo "open the new sshtunnel"
openSSHTunnel $publicIp
openSSHTunnel $publicIp $portConfigArray
}

0 comments on commit 852f911

Please sign in to comment.