Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted
plink -v -N -L 1234:localhost:1234 example.com
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 user@host.com:22 -i "privatekey.ppk". The whole command: plink -ssh user@host.com:22 -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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.