How to forward external port to internal port using plink
- by user857990
For a penetration test where I have shell access to a computer running an old Windows, I'd like to forward port 4450 to 127.0.0.1:445 because the firewall is blocking 445 externally.
I'm stuck on the following:
plink -L 4450:127.0.0.1:445 SSH-Server
According to the documentation I've found, I'd have to specify a SSH-Server. But all documentation I've found just uses an SSH-Server in the same network. To forward it to a localhost port, that wouldn't help.
Do I have to install an SSH-Server on that machine or are there other ways?