SSH Tunneling with plink or ssh

To make local port 1234 forwarding to remote hostA port 21: plink -v -C -N -L 1234:hostA:21 user@hostB ssh -L 1234:hostA:21 user@hostB Now You can connect to localhost:1234 to access hostA:21 by tunnel created with hostB. To accept connection from other hosts (not local only): plink -v -C -N -L 0.0.0.0:1234:hostA:21 user@hostB ssh -L 0.0.0.0:1234:hostA:21 user@hostB