Jay Kline <jay at slushpupie.com> wrote:
> A technique Ive use for this type of problem is to combine the
> ProxyCommand option with netcat (nc). So in your .ssh/config put this:
> 
> Host machineA
>   ProxyCommand ssh machineB /usr/bin/nc machineA 22

Wow... That's just pretty; a winner for simple A->B single-host
mappings.

If you want a more full-blown VPN over SSH:
https://wiki.archlinux.org/index.php/VPN_over_SSH

I've used SSH+PPP in the past with good success way back in the day, but
it does require PPPD to be installed on the remote side. The built-in
layer-3 OpenSSH tunneling using the TUN device looks quite useful.

> ...
> Host *
>     ControlMaster auto
>     ControlPath /tmp/.ssh_control_%r@%h:%p
> 
> ...
> ssh_config), and if your network link changes/drops you need to issue
> "ssh -O exit hostname" from your local host instead of using the ~.
> break command.

Yeah, I've been using ControlMaster for a couple of months now after a
tip from a co-worker. It's epecially helpful when using TRAMP in Emacs
to view remote files or initiate remote shells.

Chad

-- 
Chad Walstrom <chewie at wookimus.net>
http://runswithd6s.blogspot.net/