Files
myscripts/stubbfelpiproxywan.sh
2013-07-19 19:20:58 +02:00

6 lines
226 B
Bash
Executable File

#!/bin/bash
curl http://www-user.tu-cottbus.de/~stubbfel/echoRemoteAdress.php?server=stubbfelpi > ~/bin/stubbfelpi.json;
IP=`jshon -e ip < ~/bin/stubbfelpi.json | tr -d '"'`;
echo $IP;
~/bin/sshproxy.sh localhost:4711 ssh@$IP