Advertisement
dioioib

tunnel1

Apr 11th, 2014
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. ps axww | grep [s]sh | grep -q "[5]920:127.0.0.1:5900"
  2. if [ $? != 0 ] ; then
  3. # ssh port forwarding not running, so start over
  4. #open a tunnel for proxy http
  5. ssh -N -f -L 5920:127.0.0.1:5900 -L 8888:127.0.0.1:80 ip-address -p9999
  6.  
  7. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement