#
Port Forwarding - SSH
To forward a port open internally in the victim machine to our local machine.
#
Usage
ssh -R <local-port>:127.0.0.1:<service-port> <username>@<local-machine>
#
Find the open ports
netstat -nl
#
Example MySQL
ssh -R 4444:127.0.0.1:3306 root@10.10.10.x
#
In the local machine access the port
mysql -u root -h 127.0.0.1 -P 4444