Tente com isso
Edite seu:
sudo -H gedit /etc/profile.d/proxy.sh
Digite os detalhes neste formato.
export http_proxy=http://username:password@proxyhost:port/
export ftp_proxy=http://username:password@proxyhost:port/
export telnet_proxy=http://username:password@proxyhost:port/
É para quando usar wget , ftp , lftp , telnet no terminal
ssh não tem suporte nativo a SOCKS , você precisa usar ProxyCommand , por exemplo, com socat :
ssh -o ProxyCommand='socat - SOCKS4A:myproxy:%h:%p,socksuser=nobody' user@host
Ou use itens como tsocks para usar de forma transparente SOCKS para TCP tráfego.
Para SOCKS5 com socat 2:
ssh -o ProxyCommand='socat - "SOCKS5:%h:%p|tcp:myproxy:1080"' user@host
Para o método CONNECT Proxy HTTP com socat 2:
ssh -o ProxyCommand='socat - "PROXY:%h:%p|tcp:myproxy:80"' user@host