SSH TUNNEL
A Python learning tool for building SSH tunnels through a jump host to reach an internal target, written to make local, dynamic, and remote forwarding concrete in a controlled lab.
A hands-on way to understand SSH forwarding before reaching for a heavier framework.
// problem
SSH forwarding modes are hard to internalize from man pages alone.
// limitations
- For use only in a lab or against systems you are authorized to access.
// infrastructure used
- Interactive prompts build local, dynamic, and remote forwards through a jump host step by step.
- Helper routines compute subnet ranges to show which hosts a given forward reaches.
// lessons learned
- 01The password showed in the process list.
Passing it on the command line exposed it to anyone who could list processes. Key-based authentication avoids that.
- 02The username was hard-coded.
Every user had to edit the script. Prompting for it, or reading it from a config file, would make the tool reusable.
- 03A helper script was missing from the repo.
The tool calls a scan script that was never committed. Everything a tool runs belongs in its repository.