~~META: date created = 2017-06-13 08:23 &date modified = 2017-06-13 08:23 ~~ ====== Add socks5 proxy to .ssh/config ====== $ cat .ssh/config Host ssh-proxy Hostname ssh-proxy.domain.net DynamicForward 9999 Host ssh-host-with-proxy Hostname host.domain.com ProxyCommand nc -x localhost:9999 %h %p $ ssh ssh-proxy [ ... ] $ ssh ssh-host-with-proxy [ ... ] # Alternative with SSH in Background $ ssh -f -N ssh-proxy [ ... ] $ ssh ssh-host-with-proxy [ ... ] {{tag>kb linux ssh}}