mirror of https://github.com/cheat/cheat.git
Merge pull request #428 from dufferzafar/patch-2
ssh: Improve SOCKS command
This commit is contained in:
commit
d6c7863573
|
@ -21,7 +21,7 @@ ssh -f -L 8080:remote.example.com:5000 user@personal.server.com -N
|
||||||
ssh -X -t user@example.com 'chromium-browser'
|
ssh -X -t user@example.com 'chromium-browser'
|
||||||
|
|
||||||
# To create a SOCKS proxy on localhost and port 9999
|
# To create a SOCKS proxy on localhost and port 9999
|
||||||
ssh -D 9999 user@example.com
|
ssh -qND 9999 user@example.com
|
||||||
|
|
||||||
# To tunnel an ssh session over the SOCKS proxy on localhost and port 9999
|
# To tunnel an ssh session over the SOCKS proxy on localhost and port 9999
|
||||||
ssh -o "ProxyCommand nc -x 127.0.0.1:9999 -X 4 %h %p" username@example2.com
|
ssh -o "ProxyCommand nc -x 127.0.0.1:9999 -X 4 %h %p" username@example2.com
|
||||||
|
|
Loading…
Reference in New Issue