Commit dabf489a authored by Russell D's avatar Russell D

added socket_setup.sh V.121

parent a4093ccd
#!/bin/bash
# socketsetup - remote access behind NAT
# version .12
# version .121
#
#
#local variables
pids=$( ps faux | grep -i a2cyber | grep -v grep | awk '{ print $2 }' )
npids=$( echo "$pids" | wc -w )
......@@ -19,7 +20,7 @@ then
if [ "$npids" -ge "3" ]
then
kill -9 ` ps faux | grep -i a2cyber | grep -v grep | awk '{ print $2 }' `
#kill current ssh connections
fi
......@@ -29,6 +30,6 @@ then
fi
else
screen -dm ssh -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R 7001:localhost:22 -p 53 jumpman@a2cybersecurity.com
#establish a new connection to the jumpbox
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment