Lazy Linux: essential tricks for admins
Trick 5 (opening a remote port on a "public" machine to connect back to your local machine) is great. Combine it:office$ ssh -R 9999:localhost:22 user@home  ## do this in a screen for good measureand another lesser known ssh feature:home$ ssh -D 8888 -p 9999 user@localhostand now you have a SOCKS proxy on home:8888 that will access everything visible to the computer named "office".For extra credit add PingTunnel and a hotspot that happens to allow ICMP and enjoy free internet wherever you go.