Bypass AllowTcpForwarding
May 11, 2020
To bypass AllowTcpForwarding no
try using socat
and nc
:
socat TCP-LISTEN:<local port>,reuseaddr,fork "EXEC:ssh <server> nc localhost <remote port>"
For example from your desktop run:
socat TCP-LISTEN:8080,reuseaddr,fork "EXEC:ssh 1.2.3.4 nc 10.0.0.1 3000"
This will listen on local port 8080
connect via ssh to 1.2.3.4
and use nc
to connect 10.0.1.1:3000