SSH via a SOCKS proxy ?

I need to be able to make an ssh shell connection via a SOCKS5 proxy, and can't find out how to do it. It's possible to do this in putty on the PC, so I hope something similar is available for the Mac, whether it's a separate application or a way of configuring the ssh command.

Does anybody know how to do it ?

Powermac G5 Dual 1.8, Mac OS X (10.4.4)

Posted on Feb 1, 2006 3:50 AM

Reply
5 replies

Feb 1, 2006 9:35 PM in response to Andrew Rennard

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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

SSH via a SOCKS proxy ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.