The command line tool usually only supports HTTP proxies. To provide HTTP proxies from SOCKS you have Privoxy. After setting up Privoxy, you have an HTTP proxy. The terminal usually says that export http_proxy=ip:port enough for most applications. For git, see here .
But if this is too much for you, you can use sshuttle . It transparently transfers all your connections through the SOCKS proxy server. That is, all the connections on your computer, and after that you do not need to change the proxy settings for your graphical applications.
I use Homebrew as my package manager on Mac, and both Privoxy and sshuttle are available.
source share