x
Loading
 Loading
Hello, Guest | Login | Register
Community » Users » verinux
Recent Comments

Here is the script that I use to connect to my client. #!/bin/sh # $REMOTE_HOST is the name of the remote system CLIENT=linux.client.com # $REMOTE_PORT is the remote port number that will be used to tunnel # back to this system REMOTE_PORT=5000 # $COMMAND is the command used to create the reverse ssh tunnel COMMAND="ssh -N -R $REMOTE_PORT:localhost:22 $CLIENT" # Is the tunnel up? Perform two tests: # 1. Check for relevant process ($COMMAND) pgrep -f -x "$COMMAND" || $COMMAND # 2. Test tunnel by looking at "netstat" output on $CLIENT ssh $CLIENT netstat -an | egrep "tcp.*:$CLIENT.*LISTEN" \ > /dev/null 2>&1 if [ $? -ne 0 ] ; then pkill -f -x "$COMMAND" $COMMAND fi »
Yeap, I couldn't more agree with you guys. I am thinking to migrate all my virtual data center to others. why bother to support vmware, if they dont want us anyway... »
Recommended Stories

verinux hasn't made any recommendations yet.
Tags

verinux hasn't added any tags yet.