add-socks5-proxy-to-sshconfig
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| add-socks5-proxy-to-sshconfig [2023/09/03 10:13] – removed - external edit (Unknown date) 127.0.0.1 | add-socks5-proxy-to-sshconfig [2023/09/03 10:13] (current) – ↷ Page moved from kb:add-socks5-proxy-to-sshconfig to add-socks5-proxy-to-sshconfig baumi | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~META: | ||
| + | date created = 2017-06-13 08:23 | ||
| + | &date modified = 2017-06-13 08:23 | ||
| + | ~~ | ||
| + | ====== Add socks5 proxy to .ssh/config ====== | ||
| + | <code shell> | ||
| + | $ 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: | ||
| + | |||
| + | $ ssh ssh-proxy | ||
| + | [ ... ] | ||
| + | <new terminal> | ||
| + | $ ssh ssh-host-with-proxy | ||
| + | [ ... ] | ||
| + | |||
| + | # Alternative with SSH in Background | ||
| + | $ ssh -f -N ssh-proxy | ||
| + | [ ... ] | ||
| + | <same terminal> | ||
| + | $ ssh ssh-host-with-proxy | ||
| + | [ ... ] | ||
| + | </ | ||
| + | |||
| + | {{tag>kb linux ssh}} | ||
