Install
Basic Usage
Route all traffic to subnet through pivot.With Key
With Password (sshpass)
Multiple Subnets
Route All Traffic
Exclude Subnets
DNS Forwarding
Non-Standard SSH Port
Verbose / Debug
Advantages Over SSH SOCKS
- No ProxyChains needed — transparent routing
- Works with any tool (nmap TCP, curl, etc.)
- DNS forwarding support
- No SOCKS configuration per tool
Limitations
- Requires Python on pivot
- TCP only (no UDP/ICMP)
- Needs root on attacker (iptables)
Quick Reference
| Task | Command |
|---|---|
| Route subnet | sshuttle -r user@PIVOT 10.10.10.0/24 |
| All traffic | sshuttle -r user@PIVOT 0.0.0.0/0 |
| With DNS | sshuttle --dns -r user@PIVOT 10.10.10.0/24 |
| With key | sshuttle -r user@PIVOT SUBNET --ssh-cmd "ssh -i key" |