From f35cfa084e5c4c3d3a8aa65c7c5999706f88b507 Mon Sep 17 00:00:00 2001 From: Idar Lund Date: Tue, 8 Jan 2019 08:19:09 +0100 Subject: [PATCH] Update ssh added ssh over socks tunnel --- cheat/cheatsheets/ssh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/ssh b/cheat/cheatsheets/ssh index aad8cb8..e6af78f 100644 --- a/cheat/cheatsheets/ssh +++ b/cheat/cheatsheets/ssh @@ -23,6 +23,9 @@ ssh -X -t user@example.com 'chromium-browser' # To create a SOCKS proxy on localhost and port 9999 ssh -D 9999 user@example.com +# 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 + # -X use an xsession, -C compress data, "-c blowfish" use the encryption blowfish ssh user@example.com -C -c blowfish -X