On Thu, 2008-04-17 at 19:58 +1000, Jeff Waugh wrote: > <quote who="Richard Heycock"> > > > Is it possible to use ssh as a type of dynamic vpn so that when I connect > > to a remote machine the remote machine has access to the initiating > > machine? > > See the man page section for the -R option to map a remote port to a local > port. It complements the -L option, which does the opposite. I don't believe > there's a reverse analogue to the -D option though (SOCKS proxy through the > remote end), so you're stuck with port mapping. > > You can also do sick stuff like ppp-over-ssh. > > Or sensible stuff like OpenVPN.
For what you're trying to do, autossh would be useful - keeps a -L/-R tunnel alive permanently. I've used it with success to solve *cough* various firewall issues at POE's. $ sudo aptitude install autossh $ dpkg -L autossh | less -- Thanks, Sonia Hamilton http://soniahamilton.wordpress.com http://www.linkedin.com/in/soniahamilton -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html