Remote Port Forwarding
Last updated
Last updated
This is the exact opposite of local port forwarding, where any connection that reaches a port on a remote server is forwarded to a port on the local system.
Let there be 2 systems - A,B,
A->B connections are restricted by a firewall or the server accepts only loopback requests
B->A SSH connection is possible
System A | Requirement |
---|---|
Level of Compromise | Root Access with password |
Softwares | SSH |
IP | 192.168.1.10 |
System B | Requirement |
---|---|
Level of Compromise | User access |
Softwares | SSH, Service to be accessed (e.g Mysql) |
IP | 192.168.1.20 |
In the case of a Windows system, we can apply the same method using a tool meant for SSH in Windows - plink.exe
The first section of the command "/c echo y" is to pipe the answer to the prompt when the exe is executed. Without the first section you will have to interactive step to key in "y".