Lion Cipher Lab

Pivot Through a Jump Host with SSH Tunneling and proxychains

Why it matters

Real networks are not flat. You rarely land your foothold on the machine that holds the prize — you land on some reachable box, and the interesting systems sit one hop deeper, invisible from the outside. Pivoting is how you turn one compromised host into a path to the rest of the network, and SSH tunneling is the most universally available way to do it because sshd is already everywhere. Learning to pivot cleanly (and to recognize the outbound-SSH pattern that gives it away) is a core pentest and red-team skill, and the same knowledge tells a defender exactly what to watch for.

What you'll learn

Steps in this lab

  1. The one rule before anything else
  2. Build the range: a network only the jump host can see into
  3. Start the internal target — deliberately unreachable
  4. Prove you cannot reach the target directly
  5. Start the jump host — the one door you can open
  6. Confirm you can log into the jump host
  7. Pivot #1 — local port forwarding (-L): reach one service
  8. Pivot #2 — remote port forwarding (-R) and when you'd need it
  9. Pivot #3 — dynamic forwarding (-D): one tunnel, the whole subnet
  10. Point proxychains at the SOCKS proxy
  11. Tunnel arbitrary tools: curl and nmap through proxychains
  12. Pivot #4 — ProxyJump (-J): the modern one-liner
  13. When SSH pivoting is NOT the answer
  14. The defender's view — how this gets caught
  15. Tear down the range

Open the full interactive lab →