stopped allowing ampersands in file names, added documentation lines.
[feisty_meow.git] / scripts / security / khandroma_tunnels.sh
1 #!/bin/bash
2 # tunnels to the khandroma machine for vnc access to the win7 box and for the jenkins
3 # server.
4
5 soundfile=$FEISTY_MEOW_DIR/infobase/sounds/my_mind_is_going.wav
6 if [ ! -z "$1" ]; then
7   soundfile=$1
8 fi
9
10 while true; do
11   echo Connecting jenkins and vms at khandroma.
12   ssh -i $HOME/.ssh/id_dsa_fred -2 -N -v -L "*:5905:localhost:5905" -L "*:5902:localhost:5902" -L "*:5909:localhost:5909" -L "*:5908:localhost:5908" -L "*:4040:localhost:8080" fred@khandroma.cs.virginia.edu
13   bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh $soundfile &>/dev/null </dev/null &
14   echo "Got dumped from tunnels; re-establishing connection."
15   echo "Note: if you're being asked for a password, you haven't set up an RSA key yet."
16   sleep 14
17 done
18