Interesting SSH cheat sheet: port forwarding, SOCKS proxy and hidden console

abadon1969

Moderator
Staff member
MODERATOR
SUPREME
MEMBER
Joined
Sep 17, 2025
Messages
458
Reaction score
2,376
Deposit
0$
🖥 SSH cheat sheet: port forwarding, SOCKS proxy and hidden console





A modest utility hides a powerful routing layer.





Local (-L) and remote (-R) pass bypass the limitations of loop interfaces. The dynamic port (-D) turns the session into a SOCKS proxy, and redirection (-A) through jump servers (-J) eliminates copying keys to intermediate nodes.





- The hidden console (~?) helps to modify the parameters on the fly, and the conditional logic of Match in ~/.ssh/config helps to automate the branching of routes.





 
Top Bottom