Hi Andrew,
The command to whose source Andy provides a link is designed to be used as a ProxyCommand by Sun on Solaris systems. The web page,
Hack 92 SSH SOCKS 4 Proxy discusses the use of built in SOCKS 4 proxy support in OpenSSH on OS X and claims at the bottom that built in SOCKS 5 support is in the works. I don't know the status of that effort.
This post in the BSDForums.org,
HTTP proxy auth for nc(1) offers a patch for NetCat that is purported to allow it to be used as a ProxyCommand for OpenSSH. The "connect" command can be used as a ProxyCommand and
SSH via a Socks proxy on OS X with connect.c discusses how to compile and use it on OS X. More detail is provided at
SSH Proxy Command -- connect.c but I'm currently unable to connect to the machine on which the source resides.
--
Gary
~~~~
It's hard to get ivory in Africa, but in Alabama the Tuscaloosa.
-- Groucho Marx