SSH Port Forwarding
One-liner explanations + exact commands. No fluff. Just pivot and go.
Quick Decision Table
Local Port Forwarding (-L)
-L)ssh -N -L [KALI_PORT]:[TARGET_IP]:[TARGET_PORT] user@<pivot-box>ssh -N -L 4455:172.16.217.217:445 user@10.4.217.215Remote Port Forwarding (-R)
-R)ssh -N -R [KALI_PORT]:[TARGET_IP]:[TARGET_PORT] kali@<your-kali-ip>Dynamic Port Forwarding (-D)
-D)Remote Dynamic Port Forwarding (-R + SOCKS)
-R + SOCKS)Last updated