router needs to forward the port (tunneling) and disable SPI firewall
LOCALXNUM=`echo $DISPLAY | cut -d: -f2 | cut -d. -f1`
while [ 1 ] ; do
#ssh -n -x -p 8080 root@$HOMEIP ps ww | grep dropbear | awk '{if(i>0)print $1;++i}' | xargs -i ssh -x -p 8080 root@$HOMEIP "kill -9 {}"
#ssh -n -x -p 8080 root@$HOMEIP ps ww | grep sleep | awk '{print $1}' | xargs -i ssh -x -p 8080 root@$HOMEIP "kill -9 {}"
sh -c 'while true; do echo K; sleep 120; done' | ssh -g -n -x -p 8080 -R5903:$HOST:590$LOCALXNUM -R5803:$HOST:580$LOCALXNUM -R22$LOCALXNUM:$HOST:22 -L11000:OpenWrt:80 root@$HOMEIP 'sh -c "while true; do uptime; sleep 180; done"'
date
sleep 60
done
===== Alternative method when above failed =====
On Windows laptop, start VPN and use PuTTY to ssh VNC server.
PuTTY Configuration -> Category panel -> Connection tab -> SSH -> Tunnels -> Select Local ports accept connection from other hosts and Add new forwarded port, Local Source port: 5900, Destination: XX-khuang:5901
On Windows desktop, vncviewer to laptop:0
===== Using HTTP Proxy =====
SSH Through or Over Proxy (Corkscrew)
===== No Proxy, blocked SSH protocol =====
HTTP Tunnel
httptunnel
bridge
Monday, March 05, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment