Commit 5b4a76d6 by Rinat K. Nugaev

Addedd some help information while tunnel creating

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