Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to forward a port through a console without using a session in Putty. Is that possible?

share|improve this question
up vote 1 down vote accepted
plink -v -N -L 1234:localhost:1234
share|improve this answer
Thnx, -L 1234:localhost:1234 is what I was looking for. Actually I ws not aware, that plink is a console interface for putty, so you can login with it and to the usual -ssh -i "privatekey.ppk". The whole command: plink -ssh -i "privatekey.ppk" -L 1234:localhost:1234 – Skip Jan 13 '13 at 18:18
@Skip: Note that plink does not have terminal emulation – so it is really unsuited for "interactive" use. (For example, text editors won't work.) You should run plink only for portforwards (with -v -N), and keep PuTTY for everything else. – grawity Jan 13 '13 at 18:24
@Skip: (Also, the -ssh option is redundant.) – grawity Jan 13 '13 at 18:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .