To use OpenSSH through SOCKS, you will need to take a few steps:
- Download and compile connect.c. To run the following command, you will need Apple's Developer Tools, which are freely available by registering at Apple's Developer site:
sudo gcc -o sconnect connect.c
- Add the following line in your ssh_config file, located in /etc. The command shown below is for a SOCKS4 server:
ProxyCommand /compile_dir/sconnect -4 -S SOCKS-server:1080 %h %p
Replace compile_dir with the directory containing sconnect, and replace SOCKS-server with the address of your SOCKS server.

