I'm using openssh on both client and server. I know I can run
ssh -L or
ssh -R to setup some port redirections over ssh. However, since they are command-line parameters, such redirections must be written before the connection is opened.
Can I setup port redirections on-the-fly using the command-line ssh client?
When I used the
PuTTY ssh client, I could interactively setup a port redirection while a connection was already opened, without dropping nor reconnecting, thus I know it is technically possible.