Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jul 11, 2024
1 parent cbc46f1 commit 72d6f44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/aws/dependencies/reverseShell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ function closeSSHTunnel(){
# through which connections can be routed.
function establishSSHConnectionBeforeEstablishSSHTunnel(){
local instanceIp=$1
ssh -i /root/.ssh/$sshkey -o StrictHostKeyChecking=no root@$instanceIp
echo "Established SSH connection to $instanceIp"
ssh -i /root/.ssh/$sshkey -o StrictHostKeyChecking=no root@$instanceIp 'echo A new IP address is acquired'
sleep 2
}

Expand Down

0 comments on commit 72d6f44

Please sign in to comment.