Skip to content

Commit

Permalink
add ssh port and change the user name from user to root
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jun 20, 2024
1 parent e016f6e commit a6e05e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/aws/dependencies/reverseShell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ function openSSHTunnel(){
#treehouses sshtunnel add host "$monitorPort" root@"$instanceIp"
#deleteUnusedSShtunnel $instanceIp $sshtunnelPortArray
#openNonDefaultSShtunnel $instanceIp $sshtunnelPortArray
createSshConfig "myserver" $instanceIp "user" "22" "~/.ssh/id_rsa" "8888:80,9999:443"
createSshConfig "myserver" $instanceIp "root" "22" "~/.ssh/id_rsa" "8888:80,9999:443,2222:22"
autossh -f -T -N -q -4 -M 2200 myserver

echo "Below sshtunnels are configured"
treehouses sshtunnel ports

}

0 comments on commit a6e05e8

Please sign in to comment.