How to forward external port to internal port using plink

Posted by user857990 on Super User See other posts from Super User or by user857990
Published on 2013-10-22T14:38:21Z Indexed on 2013/10/22 21:57 UTC
Read the original article Hit count: 341

Filed under:
|
|

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?

© Super User or respective owner

Related posts about Windows

Related posts about ssh