mercredi 24 septembre 2008

Tunneling ssh to run remote application

Tunnel VNC

ssh -N -f {user}@{router-ip} -L 5901:{domain-ip}:5900
vncviewer localhost:1

to use with web browser

ssh -N -f {user}@{router-ip} -L 5801:{domain-ip}:5800
vncviewer localhost:1

Tunnel HTTP

ssh -N -f {user}@{router-ip} -L 8080:{domain-ip}:80
http://localhost:8080

it also works for remote gforge access through svn
svn checkout http://localhost:8080/svn/{project}