Commit 5b4a76d6 by Rinat K. Nugaev

Addedd some help information while tunnel creating

parent 119891f5
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
# - Function added # - Function added
# - Added automatic adding username after first successful login # - Added automatic adding username after first successful login
# - Added automatic exit if cant create ssh session with current login # - Added automatic exit if cant create ssh session with current login
# - Addedd some help information while tunnel creating
user="" user=""
#Defining some colours for fun ))) #Defining some colours for fun )))
RED='\033[0;31m' RED='\033[0;31m'
NC='\033[0m' NC='\033[0m'
...@@ -56,7 +58,7 @@ tunnels+=( ["iv176"]="5555" ["ks262"]="5556" ["vs1027"]="5557" ) ...@@ -56,7 +58,7 @@ tunnels+=( ["iv176"]="5555" ["ks262"]="5556" ["vs1027"]="5557" )
#Connecting... #Connecting...
for conn in "${!tunnels[@]}"; do for conn in "${!tunnels[@]}"; do
if create_tunnel ${tunnels[$conn]} $conn ; then if create_tunnel ${tunnels[$conn]} $conn ; then
echo -e "${GREEN}Tunnel to the DMZ host $conn succesufully created!${NC}" echo -e "${GREEN}Tunnel to the DMZ host $conn created! Use localhost:${tunnels[$conn]} port for connection!${NC}"
else else
echo -e "${RED}Tunnel creation to the $conn FAIL ${NC}" echo -e "${RED}Tunnel creation to the $conn FAIL ${NC}"
fi 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